Use is_hole macro to check for trapdoors and holes
This commit is contained in:
@@ -744,8 +744,7 @@ int x, y;
|
||||
dotrap(ttmp, 0); /* doesn't print messages */
|
||||
} else if (ttmp->ttyp == FIRE_TRAP) {
|
||||
dotrap(ttmp, 0);
|
||||
} else if ((is_pit(ttmp->ttyp)
|
||||
|| ttmp->ttyp == HOLE || ttmp->ttyp == TRAPDOOR)
|
||||
} else if ((is_pit(ttmp->ttyp) || is_hole(ttmp->ttyp))
|
||||
&& Sokoban) {
|
||||
/* air currents overcome the recoil in Sokoban;
|
||||
when jumping, caller performs last step and enters trap */
|
||||
|
||||
Reference in New Issue
Block a user