summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 16:14:55 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 16:14:55 +0000
commit3e5eae658a2dd7acbd5584f4a6104ba99e7de275 (patch)
treea67d1bbc631d696ffa2892c5aceadf02c9ba846c /crawl-ref/source/itemname.cc
parent2e6e327fcefc772e02f8d6db1232fb97aaaab597 (diff)
downloadcrawl-ref-3e5eae658a2dd7acbd5584f4a6104ba99e7de275.tar.gz
crawl-ref-3e5eae658a2dd7acbd5584f4a6104ba99e7de275.zip
Monsters were not getting species-appropriate missiles, fixed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1802 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 4b823cef70..639879dc1e 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1040,8 +1040,10 @@ std::string item_def::name_aux( description_level_type desc,
buff << ' ';
}
- buff << racial_description_string(*this, terse)
- << ammo_name(static_cast<missile_type>(item_typ));
+ if (!basename)
+ buff << racial_description_string(*this, terse);
+
+ buff << ammo_name(static_cast<missile_type>(item_typ));
if (know_type && !basename)
{