diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-11 22:36:20 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-11 22:36:20 -0800 |
commit | b3309bdf0976b1a95a532e27ee08e7fd7ca91c0d (patch) | |
tree | 720c697415db6654cd3a4ef68ba66bbf752bf64f /crawl-ref/source/stuff.cc | |
parent | 578de264d19b4705f9198569c662401f11947df7 (diff) | |
download | crawl-ref-b3309bdf0976b1a95a532e27ee08e7fd7ca91c0d.tar.gz crawl-ref-b3309bdf0976b1a95a532e27ee08e7fd7ca91c0d.zip |
stuff.cc: fix zap_los_monsters()
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 3be83efe20..377b9ba84a 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -891,14 +891,14 @@ void zap_los_monsters() for (rectangle_iterator ri(crawl_view.vlos1, crawl_view.vlos2); ri; ++ri ) { - if (!in_vlos(*ri)) - continue; - const coord_def g = view2grid(*ri); if (!map_bounds(g)) continue; + if (!you.see_cell(g)) + continue; + if (g == you.pos()) continue; |