diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-17 08:17:21 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-17 08:17:21 +0000 |
commit | 4b6ac5613a20ec0d64a43f3b2ea99dae0eceaf47 (patch) | |
tree | fdecc7e68c849c5f02d2a77f8b90bf1ad441b19b /crawl-ref/source/itemname.cc | |
parent | e75d4ff45d05746e1ebedefbbe2d902951167da3 (diff) | |
download | crawl-ref-4b6ac5613a20ec0d64a43f3b2ea99dae0eceaf47.tar.gz crawl-ref-4b6ac5613a20ec0d64a43f3b2ea99dae0eceaf47.zip |
Remove bogus comment.
Fix longdesc for potions of congealed blood (1914523).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3687 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 0c252260cc..ca35a7a6de 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -74,8 +74,6 @@ std::string quant_name( const item_def &item, int quant, return tmp.name(des, terse); } -// buff must be at least ITEMNAME_SIZE if non-NULL. If NULL, a static -// item buffer will be used. std::string item_def::name(description_level_type descrip, bool terse, bool ident, bool with_inscription, @@ -1290,8 +1288,13 @@ std::string item_def::name_aux( description_level_type desc, { buff << "potion of "; - if (this->sub_type == POT_BLOOD && this->special < 200) + // rotting corpses don't get special dbnames, so neither do !blood + if (this->sub_type == POT_BLOOD + && this->special < 200 + && !dbname) + { buff << "congealed "; + } buff << potion_type_name(item_typ); } |