summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-05 19:39:20 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-05 19:39:20 +1000
commitcca75d0d96739701acaeea0b20096954eb5b2b3f (patch)
treefd326e2f2fe6f744489ce0bff82f7c4eaeac26da /crawl-ref/source/view.cc
parentf1bba037620a7217a84e8930b9e2509c44ada1ef (diff)
downloadcrawl-ref-cca75d0d96739701acaeea0b20096954eb5b2b3f.tar.gz
crawl-ref-cca75d0d96739701acaeea0b20096954eb5b2b3f.zip
Make "seen" flag in monster specs work.
(Somewhat hackish.)
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 500335a71d..5873d32794 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -87,8 +87,12 @@ void handle_seen_interrupt(monsters* monster)
activity_interrupt_data aid(monster);
if (!monster->seen_context.empty())
aid.context = monster->seen_context;
- else if (testbits(monster->flags, MF_WAS_IN_VIEW))
+ // XXX: Hack to make the 'seen' monster spec flag work.
+ else if (testbits(monster->flags, MF_WAS_IN_VIEW)
+ || testbits(monster->flags, MF_SEEN))
+ {
aid.context = "already seen";
+ }
else
aid.context = "newly seen";