summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cmd-keys.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-15 13:43:09 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-15 13:48:03 +0200
commitb02539ff4ac1d21c8845c2af8378fb7bd9ff2ad8 (patch)
tree146a25db4482d80c25a7dec5af8523f78d5fb56e /crawl-ref/source/cmd-keys.h
parent727a5f87e3fc402b7218833a6f34203def33dfc4 (diff)
downloadcrawl-ref-b02539ff4ac1d21c8845c2af8378fb7bd9ff2ad8.tar.gz
crawl-ref-b02539ff4ac1d21c8845c2af8378fb7bd9ff2ad8.zip
Simplify ray handling in directn.cc.
Existence of a valid ray is now tracked with a separate boolean have_beam. fallback_ray has been removed almost completely. The change appears fine in console crawl; tiles untested at the moment. find_ray now correctly returns false for rays with source == target. Also rename CMD_TARGET_HIDE_BEAM to CMD_TARGET_TOGGLE_BEAM.
Diffstat (limited to 'crawl-ref/source/cmd-keys.h')
-rw-r--r--crawl-ref/source/cmd-keys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/cmd-keys.h b/crawl-ref/source/cmd-keys.h
index d680c708ed..931a36f740 100644
--- a/crawl-ref/source/cmd-keys.h
+++ b/crawl-ref/source/cmd-keys.h
@@ -166,7 +166,7 @@
{' ', CMD_TARGET_SELECT}, // XXX hack: can also be CMD_TARGET_CANCEL
{CONTROL('P'), CMD_TARGET_SHOW_PROMPT},
{CONTROL('C'), CMD_TARGET_CYCLE_BEAM},
-{':', CMD_TARGET_HIDE_BEAM},
+{':', CMD_TARGET_TOGGLE_BEAM},
{'!', CMD_TARGET_SELECT_FORCE},
{'@', CMD_TARGET_SELECT_FORCE_ENDPOINT},
{'\r', CMD_TARGET_SELECT},