summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-21 23:06:52 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-21 23:10:24 +0100
commite1f5627fdb1aa82638e7e40bb756bb0fd969759d (patch)
tree2a3e948a6026c9ecace3d1f33a0949924c1dd129 /crawl-ref/source
parent59b5c928445114afbc157422a7ebacb9a6dc0184 (diff)
downloadcrawl-ref-e1f5627fdb1aa82638e7e40bb756bb0fd969759d.tar.gz
crawl-ref-e1f5627fdb1aa82638e7e40bb756bb0fd969759d.zip
Don't issue erroneous seen-interrupts during level generation.
There was a check against you.can_see() in _place_monster_aux which took place on the new level, while player position and LOS were still on the old level. Aside from possible other bugs, this was apparent in the tutorial, which occasionally told the player about such monsters.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/mon-place.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
index 6f77a2619a..499d5e1973 100644
--- a/crawl-ref/source/mon-place.cc
+++ b/crawl-ref/source/mon-place.cc
@@ -1367,7 +1367,7 @@ static int _place_monster_aux(const mgen_data &mg,
mark_interesting_monst(mon, mg.behaviour);
- if (you.can_see(mon))
+ if (!Generating_Level && you.can_see(mon))
handle_seen_interrupt(mon);
if (crawl_state.arena)