summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-18 09:03:29 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-18 21:02:54 +0100
commitb143e4d7bbd2c1bad892411cfe66f709b453148c (patch)
treecd50a192ad739fb121d2cdace25fbee1251674f7 /crawl-ref/source/directn.cc
parentd6e6ad463aef04bd342824a18dee329a74b3f10c (diff)
downloadcrawl-ref-b143e4d7bbd2c1bad892411cfe66f709b453148c.tar.gz
crawl-ref-b143e4d7bbd2c1bad892411cfe66f709b453148c.zip
A formatting fix.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 95ab7f3593..54d67962f4 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1656,12 +1656,9 @@ void direction_chooser::handle_movement_key(command_type key_command,
const coord_def& delta = Compass[compass_idx];
const bool unshifted = (shift_direction(key_command) != key_command);
if (unshifted)
- {
set_target(target() + delta);
- } else
- {
+ else
*loop_done = select_compass_direction(delta);
- }
}
}