summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-07 08:49:32 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-07 08:49:32 +0000
commit504342b26a04cf2e33cb49b61d721ee483f5c68b (patch)
tree2f1a37c872ed506edca6147e67afb2264bedb46f /crawl-ref/source/describe.cc
parente99482b467e5cfe80a476f49eae8d398eab79440 (diff)
downloadcrawl-ref-504342b26a04cf2e33cb49b61d721ee483f5c68b.tar.gz
crawl-ref-504342b26a04cf2e33cb49b61d721ee483f5c68b.zip
Merge r7762: fix some god gift autoinscription problems.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@7763 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 72d603a09f..631fa0769b 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2140,7 +2140,12 @@ void inscribe_item(item_def &item, bool proper_prompt)
_trim_randart_inscrip(item);
if (!item.inscription.empty())
- item.inscription += ", ";
+ {
+ if (ends_with(item.inscription, ","))
+ item.inscription += " ";
+ else
+ item.inscription += ", ";
+ }
item.inscription += ainscrip;
break;