summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-20 00:37:20 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-20 00:37:20 +0000
commitc89b568c87e0e9ededf6bf5e01a8cb64c14d29c2 (patch)
treea51ae1f02146759cfc062aef3025931f30bd5624 /crawl-ref/source/directn.cc
parent207f41de95938d15bca36a7b5b8872adabd78e2d (diff)
downloadcrawl-ref-c89b568c87e0e9ededf6bf5e01a8cb64c14d29c2.tar.gz
crawl-ref-c89b568c87e0e9ededf6bf5e01a8cb64c14d29c2.zip
Fix [2566927]: add new keymap codes for targeting and levelmap.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9136 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 0aad26a41d..6eaa8913ac 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -317,7 +317,7 @@ static void _direction_again(dist& moves, targeting_type restricts,
moves.isEndpoint = false;
moves.choseRay = false;
- if (you.prev_targ == MHITNOT && you.prev_grd_targ == coord_def(0, 0))
+ if (you.prev_targ == MHITNOT && you.prev_grd_targ.origin())
{
moves.isCancel = true;
crawl_state.cancel_cmd_repeat();