diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 14:39:19 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 14:39:19 +0000 |
commit | e37ab8471fcc8761a0d4a4954918ec4c679ed1bb (patch) | |
tree | 014e77a542007c8a29084bcaa4252a0e9c0fad3e /crawl-ref/source/debug.cc | |
parent | 6a8469f3af9fff8fd6670be7bab4b7652ef3f957 (diff) | |
download | crawl-ref-e37ab8471fcc8761a0d4a4954918ec4c679ed1bb.tar.gz crawl-ref-e37ab8471fcc8761a0d4a4954918ec4c679ed1bb.zip |
Only apply targeting via monster list to spells and such where
targeting monsters is actually needed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6338 c06c8d41-db1a-0410-9941-cceddc491573
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)) |