summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-23 03:27:38 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-23 03:27:38 +0000
commit59b4a255cc8e70e77b2374a36f7555d6b59ff06d (patch)
tree8dd3cece613cd54642241ce64bca1bc19f21d255 /crawl-ref/source/delay.cc
parent5a9bc366df060d4ff78181ebd1a51eec27dc3577 (diff)
downloadcrawl-ref-59b4a255cc8e70e77b2374a36f7555d6b59ff06d.tar.gz
crawl-ref-59b4a255cc8e70e77b2374a36f7555d6b59ff06d.zip
Force monster movement to keep the monster in LOS immediately after the monster
gives a "comes into view" message, not immediately after it shouts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8705 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 9f76609cc0..bc99032034 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -1782,6 +1782,7 @@ inline static bool _monster_warning(activity_interrupt_type ai,
}
else
{
+ ASSERT(mon->seen_context != "just seen");
// If the monster is in the auto_exclude list, automatically
// set an exclusion.
if (need_auto_exclude(mon) && !is_exclude_root(mon->pos()))
@@ -1842,6 +1843,7 @@ inline static bool _monster_warning(activity_interrupt_type ai,
print_formatted_paragraph(text,
get_number_of_cols(),
MSGCH_WARN);
+ const_cast<monsters*>(mon)->seen_context = "just seen";
}
if (Options.tutorial_left)