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/losglobal.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/losglobal.cc')
-rw-r--r-- | crawl-ref/source/losglobal.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/losglobal.cc b/crawl-ref/source/losglobal.cc index 4557febdec..b8600347a5 100644 --- a/crawl-ref/source/losglobal.cc +++ b/crawl-ref/source/losglobal.cc @@ -94,6 +94,13 @@ static void _update_globallos_at(const coord_def& p, los_type l) _save_los(&los, l); break; } + case LOS_SOLID_SEE: + { + los_def los(p, opc_solid_see); + los.update(); + _save_los(&los, l); + break; + } default: die("invalid opacity"); } |