diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 10:34:31 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 10:35:20 +0100 |
commit | ac57710a1bd51909a8e8672b4cb7199468257d67 (patch) | |
tree | fedad5560bd022b4b922dc71b9975b24d2f80164 /crawl-ref/source/stuff.cc | |
parent | 65a1613c83515d7ff24b18a17fc875e77cd2bd36 (diff) | |
download | crawl-ref-ac57710a1bd51909a8e8672b4cb7199468257d67.tar.gz crawl-ref-ac57710a1bd51909a8e8672b4cb7199468257d67.zip |
Possible fix for monsters in starting LOS.
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 5aa65d2dca..3737cebf2d 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -888,11 +888,8 @@ void zap_los_monsters(bool items_also) los_def los(you.pos(), opc_fullyopaque); los.update(); - for (radius_iterator ri(you.pos(), LOS_RADIUS, true, false); ri; ++ri) + for (radius_iterator ri(&los); ri; ++ri) { - if (!you.see_cell(*ri)) - continue; - if (items_also) { int item = igrd(*ri); |