From d40c13fe95764014009d8d27081913290ce1391f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 6 Jul 2008 22:00:57 +0000 Subject: Remove some of my infamous debugging statements (I keep forgetting them!) and move the new pdf files around, renaming contact.pdf to README.pdf since it's the shorter version of readme.txt, also capitalized now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6435 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/randart.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/randart.cc') diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 63a85194a6..8d35c5f481 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -1309,11 +1309,13 @@ std::string randart_name(const item_def &item, bool appearance) std::string lookup; std::string result; - // use prefix of gifting god, if applicable + // Use prefix of gifting god, if applicable. bool god_gift = false; int item_orig = 0; - if (!appearance) // god prefix not necessary for appearance + if (!appearance) { + // Divine gifts don't look special, so this is only necessary + // for actually naming an item. item_orig = item.orig_monnum; if (item_orig < 0) item_orig = -item_orig - 2; @@ -1351,7 +1353,7 @@ std::string randart_name(const item_def &item, bool appearance) result += appear; result += " "; result += item_base_name(item); - return result; + return (result); } if (_pick_db_name(item)) -- cgit v1.2.3-54-g00ecf