summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.cc
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-11-08 00:39:38 +0100
committerFlorian Diebold <flodiebold@gmail.com>2011-11-23 19:06:47 +0100
commita9079440e36eb20841ba3b84182830033a1abb64 (patch)
treed1539265c7d7a5b7e292e9bdd2fd4fc5e4d65158 /crawl-ref/source/state.cc
parent1326a7e9556198e7388b0e1c7427def08ac0d7e1 (diff)
downloadcrawl-ref-a9079440e36eb20841ba3b84182830033a1abb64.tar.gz
crawl-ref-a9079440e36eb20841ba3b84182830033a1abb64.zip
Make the monster_info constructors explicit and use monster_info in more places.
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r--crawl-ref/source/state.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc
index b2b482677b..c0603bce54 100644
--- a/crawl-ref/source/state.cc
+++ b/crawl-ref/source/state.cc
@@ -215,9 +215,10 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai,
#ifndef DEBUG_DIAGNOSTICS
if (at.context == "newly seen")
{
+ monster_info mi(mon);
set_auto_exclude(mon);
- std::string text = get_monster_equipment_desc(mon, DESC_WEAPON);
+ std::string text = get_monster_equipment_desc(mi, DESC_WEAPON);
text += " comes into view.";
mpr(text, MSGCH_WARN);
}