diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-25 16:05:10 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-25 16:05:10 +0000 |
commit | 8bfaf6ef81749426716251f5a60f3dd4b7a465ac (patch) | |
tree | 8d6193f7ed33ad871304039ecfac4a9a84a66908 /crawl-ref/source/view.cc | |
parent | 12b89633e82cf30122e96aaa65e9eebefba6e719 (diff) | |
download | crawl-ref-8bfaf6ef81749426716251f5a60f3dd4b7a465ac.tar.gz crawl-ref-8bfaf6ef81749426716251f5a60f3dd4b7a465ac.zip |
Fix second half of [2628480]: monsters that shout while in view will
instantly be tagged as seen so that you get the appropriate message
if they then move out of sight.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9216 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 0e836ba0d9..adf8159188 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1201,6 +1201,10 @@ void handle_monster_shouts(monsters* monster, bool force) { msg = do_mon_str_replacements(msg, monster, s_type); msg::streams(channel) << msg << std::endl; + + // Otherwise it can move away with no feedback. + if (you.can_see(monster)) + seen_monster(monster); } } |