summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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