summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-19 02:01:24 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-19 02:01:24 +0000
commit5e0f84b95bab2e811578cd6021813fa5609e769d (patch)
tree24934e35b6c8a5989bde3dfd6bd8a81f5418da87 /crawl-ref
parent725cb5b4d5a3ade5c5e7b04a6210cedc839c2bdd (diff)
downloadcrawl-ref-5e0f84b95bab2e811578cd6021813fa5609e769d.tar.gz
crawl-ref-5e0f84b95bab2e811578cd6021813fa5609e769d.zip
"newly seen" vs "already seen" context was missing for see-monster activity
interrupt data. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2139 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/view.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 3c2db65d08..852bb65699 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -1068,11 +1068,17 @@ void fire_monster_alerts()
&& !mons_is_submerged( monster ))
{
learn_visible_mon_eq_egos(monster);
+ activity_interrupt_data aid(monster);
+ if (testbits(monster->flags, MF_WAS_IN_VIEW))
+ aid.context = "already seen";
+ else
+ aid.context = "newly seen";
+
if (!mons_is_safe( static_cast<const monsters*>(monster) )
&& !mons_class_flag( monster->type, M_NO_EXP_GAIN )
&& !mons_is_mimic( monster->type ))
{
- interrupt_activity( AI_SEE_MONSTER, monster );
+ interrupt_activity( AI_SEE_MONSTER, aid );
}
seen_monster( monster );