summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-05 07:23:12 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-05 07:23:12 +0000
commit06980b6f268f34a28700cdd39bbc7911310b4a80 (patch)
tree92d81e015313f473c320f72b113d389c664ceb57 /crawl-ref/source/mon-util.cc
parent01ec326983283785229fe4fadb789a1555141354 (diff)
downloadcrawl-ref-06980b6f268f34a28700cdd39bbc7911310b4a80.tar.gz
crawl-ref-06980b6f268f34a28700cdd39bbc7911310b4a80.zip
FR 2006559: fix descriptions of viewed monsters not always fitting into
24 rows, like it was fixed for lookup (?/ command). Also, fixed probem with zombies and other derived monsters not having a description when viewed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6402 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 5f4748cb0d..94a0ffbc2f 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1759,6 +1759,9 @@ static std::string _str_monam(const monsters& mon, description_level_type desc,
return item.name(desc, false, false, use_inscrip, false, ignore_flags);
}
+ if (desc == DESC_DBNAME)
+ return get_monster_data(mon.type)->name;
+
if (mon.type == MONS_PLAYER_GHOST)
return apostrophise(mon.mname) + " ghost";