summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-18 00:38:00 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-18 01:36:14 -0800
commitab3bd97a99a8e51e4587090e4b62f56b0a4d72e2 (patch)
tree3876488881abdae378bc977d8ae2d943c35c79ba /crawl-ref/source/directn.cc
parent8dda54788b998a0348304aabeb5c4d727fd9e544 (diff)
downloadcrawl-ref-ab3bd97a99a8e51e4587090e4b62f56b0a4d72e2.tar.gz
crawl-ref-ab3bd97a99a8e51e4587090e4b62f56b0a4d72e2.zip
directn.cc: Handle CMD_TARGET_CENTER
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index d95935dce4..cec4ffa732 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1484,6 +1484,12 @@ void direction(dist& moves, targetting_type restricts,
#endif
break;
+ case CMD_TARGET_CENTER:
+ moves.isValid = true;
+ moves.isTarget = true;
+ moves.target = you.pos();
+ break;
+
#ifdef WIZARD
case CMD_TARGET_WIZARD_MAKE_FRIENDLY:
// Maybe we can skip this check...but it can't hurt