diff options
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r-- | crawl-ref/source/debug.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index 7b08beaec1..d146230f75 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -708,9 +708,11 @@ void wizard_level_travel( bool down ) // This lets us, for example, use &U to exit from Pandemonium and // &D to go to the next level. command_type real_dir = grid_stair_direction(stairs); - if ((down && real_dir == CMD_GO_UPSTAIRS) - || (!down && real_dir == CMD_GO_DOWNSTAIRS)) + if (down && real_dir == CMD_GO_UPSTAIRS + || !down && real_dir == CMD_GO_DOWNSTAIRS) + { down = !down; + } if (down) down_stairs(you.your_level, stairs); @@ -4103,7 +4105,7 @@ static void _move_player(int x, int y) static void _move_monster(int x, int y, int mid1) { dist moves; - direction(moves, DIR_NONE, TARG_ANY, -1, true, false, + direction(moves, DIR_NONE, TARG_ANY, -1, true, false, true, "Move monster to where?"); if (!moves.isValid || !in_bounds(moves.tx, moves.ty)) |