summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-18 16:55:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-18 16:55:19 +0000
commit70889101822801851ed68a29b4a1f48996129a15 (patch)
tree5e0fa80a2c6c319e1ae11d366a71741a87c8d874 /crawl-ref/source/output.cc
parent01f413b9a6320a38db8ebc330df8617274e75150 (diff)
downloadcrawl-ref-70889101822801851ed68a29b4a1f48996129a15.tar.gz
crawl-ref-70889101822801851ed68a29b4a1f48996129a15.zip
Fix [1962231]: The zombie damage indicator in the monster list no longer
displays wound information, just as examining them with 'x' doesn't. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5124 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index ce17c729dc..fb6b87bfa9 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -1179,9 +1179,13 @@ _print_next_monster_desc(const std::vector<monster_pane_info>& mons, int& start)
if (count == 1)
{
// Print an "icon" representing damage level
+ const monsters *mon = mons[start].m_mon;
std::string damage_desc;
mon_dam_level_type damage_level;
- mons_get_damage_level(mons[start].m_mon, damage_desc, damage_level);
+ if (!monster_descriptor(mon->type, MDSC_NOMSG_WOUNDS))
+ mons_get_damage_level(mon, damage_desc, damage_level);
+ else
+ damage_level = MDAM_OKAY;
int dam_color;
switch (damage_level)
{