summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-27 16:31:47 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-27 16:31:47 +0000
commit865149aa81d5ca891c4bba5c3c347194e1b6cd80 (patch)
tree56fa0da01dab0fe7e876be0165c9f56d5a2cd8d9 /crawl-ref/source/itemname.cc
parentf3ea3473859e35a5d232c1a075af8af2646867a1 (diff)
downloadcrawl-ref-865149aa81d5ca891c4bba5c3c347194e1b6cd80.tar.gz
crawl-ref-865149aa81d5ca891c4bba5c3c347194e1b6cd80.zip
Oops, rings were getting doubled names, fixed.
The march towards ostringstream goes on. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1385 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc24
1 files changed, 13 insertions, 11 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 3132b1669a..07353d6d77 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1299,18 +1299,20 @@ std::string item_def::name_aux( bool terse, bool ident ) const
buff << jewellery_type_name(item_typ);
}
-
- if (item_typ < AMU_RAGE) // rings
- {
- buff << ring_secondary_string(this->special / 13)
- << ring_primary_string(this->special % 13)
- << " ring";
- }
- else // amulets
+ else
{
- buff << amulet_secondary_string(this->special / 13)
- << amulet_primary_string(this->special % 13)
- << " amulet";
+ if (item_typ < AMU_RAGE) // rings
+ {
+ buff << ring_secondary_string(this->special / 13)
+ << ring_primary_string(this->special % 13)
+ << " ring";
+ }
+ else // amulets
+ {
+ buff << amulet_secondary_string(this->special / 13)
+ << amulet_primary_string(this->special % 13)
+ << " amulet";
+ }
}
break;