summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-07-20 17:00:36 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-07-20 17:21:56 +0200
commit09226ac0c680bbbb99986534e466f4e87a902ba8 (patch)
tree315479263c8f25e3ad4ac73fa647e555bf7783fb /crawl-ref/source/los.cc
parentef7bc03388e190b9942fe4e50f756bed8260eb2f (diff)
downloadcrawl-ref-09226ac0c680bbbb99986534e466f4e87a902ba8.tar.gz
crawl-ref-09226ac0c680bbbb99986534e466f4e87a902ba8.zip
Wizard mode xray vision (Ctrl-V).
It would be nice to expose the whole viewed area, but LOS code assumes circular bounds in a few places.
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 cc157f298f..a1d3c26753 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -690,7 +690,7 @@ dungeon_feature_type ray_blocker(const coord_def& source,
ray_def ray;
if (!find_ray(source, target, ray, opc_default))
{
- ASSERT (false);
+ ASSERT (you.xray_vision);
return (NUM_FEATURES);
}