summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-18 19:57:48 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-18 19:57:48 +0000
commitff00ffd9da330a94bd282bcc127157672e589a9a (patch)
tree1e24a45b62d2112279b7043594c9c4638bbe54d1 /crawl-ref/source/shopping.cc
parentcb1d25a9a8371edb63bc1721b616df12c4e790c2 (diff)
downloadcrawl-ref-ff00ffd9da330a94bd282bcc127157672e589a9a.tar.gz
crawl-ref-ff00ffd9da330a94bd282bcc127157672e589a9a.zip
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7476 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index e341a49aca..be23d980cd 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -283,7 +283,7 @@ static void _in_a_shop( int shopidx )
if (!total_cost)
{
snprintf( info, INFO_SIZE, "You have %d gold piece%s.", you.gold,
- (you.gold == 1) ? "" : "s" );
+ you.gold == 1 ? "" : "s" );
textcolor(YELLOW);
}
@@ -292,7 +292,7 @@ static void _in_a_shop( int shopidx )
snprintf( info, INFO_SIZE, "You now have %d gold piece%s. "
"You are short %d gold piece%s for the purchase.",
you.gold,
- (you.gold == 1) ? "" : "s",
+ you.gold == 1 ? "" : "s",
total_cost - you.gold,
(total_cost - you.gold == 1) ? "" : "s" );
@@ -303,7 +303,7 @@ static void _in_a_shop( int shopidx )
snprintf( info, INFO_SIZE, "You now have %d gold piece%s. "
"After the purchase, you will have %d gold piece%s.",
you.gold,
- (you.gold == 1) ? "" : "s",
+ you.gold == 1 ? "" : "s",
you.gold - total_cost,
(you.gold - total_cost == 1) ? "" : "s" );