summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-12-11 17:06:46 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-12-11 17:06:46 +0100
commitd09b4f16275a05d49ed29aef992ecb85212f287c (patch)
treece744de21bb6e49405ba2b44d62bb28517071bf8 /crawl-ref/source/los.cc
parent00c8f8cc5f9aa9d7904908fa6590781b75220898 (diff)
downloadcrawl-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/los.cc')
-rw-r--r--crawl-ref/source/los.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index 2429a75528..c3c1fb8159 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -688,7 +688,7 @@ dungeon_feature_type ray_blocker(const coord_def& source,
int blocked = 0;
while (ray.pos() != target)
{
- blocked += opc_solid(ray.pos());
+ blocked += opc_solid_see(ray.pos());
if (blocked >= OPC_OPAQUE)
return (env.grid(ray.pos()));
ray.advance();