diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-07 08:41:09 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-07 08:41:09 +0000 |
commit | e389d95705a390483c21191eec96a12824c6cb69 (patch) | |
tree | 5178d7db19c7f5391dee298194c59085947d494a /crawl-ref/source/describe.cc | |
parent | 0f4b659dddc446658c1cb6387dfdd03bcb758db5 (diff) | |
download | crawl-ref-e389d95705a390483c21191eec96a12824c6cb69.tar.gz crawl-ref-e389d95705a390483c21191eec96a12824c6cb69.zip |
Fix bug 2398346: don't record note on identify-by-wearing of mundane armour.
Fix some god gift autoinscription problems.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7762 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 821000775d..5b7460b743 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -439,7 +439,12 @@ void add_autoinscription( item_def &item, std::string ainscrip) _trim_randart_inscrip(item); if (!item.inscription.empty()) - item.inscription += ", "; + { + if (ends_with(item.inscription, ",")) + item.inscription += " "; + else + item.inscription += ", "; + } item.inscription += ainscrip; } |