diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-15 13:43:09 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-15 13:48:03 +0200 |
commit | b02539ff4ac1d21c8845c2af8378fb7bd9ff2ad8 (patch) | |
tree | 146a25db4482d80c25a7dec5af8523f78d5fb56e /crawl-ref/source/enum.h | |
parent | 727a5f87e3fc402b7218833a6f34203def33dfc4 (diff) | |
download | crawl-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/enum.h')
-rw-r--r-- | crawl-ref/source/enum.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index fccb77c580..9db5a63bbd 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -661,7 +661,7 @@ enum command_type CMD_TARGET_CYCLE_MLIST = 2000, // for indices a-z in the monster list CMD_TARGET_CYCLE_MLIST_END = 2025, CMD_TARGET_TOGGLE_MLIST, - CMD_TARGET_HIDE_BEAM, + CMD_TARGET_TOGGLE_BEAM, CMD_TARGET_CENTER, CMD_TARGET_CANCEL, CMD_TARGET_SHOW_PROMPT, |