summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-12 01:49:12 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-12 01:49:12 +0000
commitaf9d6c8e0e2e3f58d255449716ad7875cde5ae07 (patch)
tree1a2d6ffcad7f74d1fbebaa349233928bd60d8d2e /crawl-ref/source/describe.cc
parent192cbf9887aae64c3ef02cde310ee3175a0d4fb5 (diff)
downloadcrawl-ref-af9d6c8e0e2e3f58d255449716ad7875cde5ae07.tar.gz
crawl-ref-af9d6c8e0e2e3f58d255449716ad7875cde5ae07.zip
General code improvements.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7220 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 398533aef2..3c04ab10d9 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2362,8 +2362,7 @@ void describe_monsters(const monsters& mons)
if (mons_is_mimic(mons.type) && !(mons.flags & MF_KNOWN_MIMIC))
{
item_def item;
- const monsters *mon = &mons;
- get_mimic_item( mon, item );
+ get_mimic_item(&mons, item);
describe_item(item);
return;
}
@@ -2371,7 +2370,7 @@ void describe_monsters(const monsters& mons)
std::ostringstream body;
std::string title, prefix, suffix, quote;
- std::string capname = mons.name(DESC_CAP_A);
+ const std::string capname = mons.name(DESC_CAP_A);
title = capname;
if (mons.has_base_name())
{
@@ -2388,7 +2387,7 @@ void describe_monsters(const monsters& mons)
body << getLongDescription(db_name);
quote = getQuoteString(db_name);
- std::string symbol = "";
+ std::string symbol;
symbol += get_monster_data(mons.type)->showchar;
if (isupper(symbol[0]))
symbol = "cap-" + symbol;