summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-16 21:08:02 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-16 21:19:54 +0100
commit4d1aa77622fdaf6ae8c985ee42c41dce96278ccc (patch)
tree94b0bd941be38845a4ee7956b9ec55ddad735792 /crawl-ref/source/tutorial.cc
parent2c9b3ce286f5c274cb0348253259bcca24d967a3 (diff)
downloadcrawl-ref-4d1aa77622fdaf6ae8c985ee42c41dce96278ccc.tar.gz
crawl-ref-4d1aa77622fdaf6ae8c985ee42c41dce96278ccc.zip
Disable tutorial waking monsters.
Tutorial shouldn't have side-effects; also, the "may stab" brand can still be explained later. In console debug + tutorial, this was causing an assertion. Briefly: Handle_seen_interrupt issues a monster "newly seen" interrupt, which calls tutorial_first_monster, which in turn alerts the monster, which causes it to shout, which calls learned_something_new(MONSTER_SHOUT), which prints a message, which issues a message interrupt, which issues another message, which calls flush_comes_into_view, which interrupts with the same monster again, but now "just seen", which causes an assertion.
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 8e851279e6..b7ab40b522 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -1311,13 +1311,6 @@ void tutorial_first_monster(const monsters &mon)
return;
}
- if (_mons_is_highlighted(&mon))
- {
- // Make first monster notice player, so we can explain the brand
- // some time later.
- monsters *m = monster_at(mon.pos());
- behaviour_event( m, ME_ALERT, MHITYOU, you.pos() );
- }
stop_running();
Options.tutorial_events[TUT_SEEN_MONSTER] = false;