diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-11 17:06:46 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-12-11 17:06:46 +0100 |
commit | d09b4f16275a05d49ed29aef992ecb85212f287c (patch) | |
tree | ce744de21bb6e49405ba2b44d62bb28517071bf8 /crawl-ref/source/mon-movetarget.cc | |
parent | 00c8f8cc5f9aa9d7904908fa6590781b75220898 (diff) | |
download | crawl-ref-d09b4f16275a05d49ed29aef992ecb85212f287c.tar.gz crawl-ref-d09b4f16275a05d49ed29aef992ecb85212f287c.zip |
Disambiguate the LOS_SOLID confusion.
Its name suggests it's about line of effect, while in fact it's both effect
and sight. Thus, I've split its uses into LOS_SOLID and LOS_SOLID_SEE -- the
former is what LOS_SOLID was usually understood to mean, the latter is what it
actually was (being targettable with an arrow/beam).
The difference is: LOS_SOLID_SEE obeys clouds.
The name of the latter is abysmal -- if you have a better idea, please sed.
Diffstat (limited to 'crawl-ref/source/mon-movetarget.cc')
-rw-r--r-- | crawl-ref/source/mon-movetarget.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-movetarget.cc b/crawl-ref/source/mon-movetarget.cc index b616e65473..ceb7d608f1 100644 --- a/crawl-ref/source/mon-movetarget.cc +++ b/crawl-ref/source/mon-movetarget.cc @@ -153,7 +153,7 @@ bool try_pathfind(monster* mon) if ((!crawl_state.game_is_zotdef()) && need_pathfind && mons_intel(mon) >= I_NORMAL && !mon->friendly() && mons_has_ranged_attack(mon) - && cell_see_cell(mon->pos(), PLAYER_POS, LOS_SOLID)) + && cell_see_cell(mon->pos(), PLAYER_POS, LOS_SOLID_SEE)) { need_pathfind = false; } |