From 94b43ee8dcbc9c0244e6c86250b0393399118bc2 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 17 Jan 2009 05:14:32 +0000 Subject: Add more minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8490 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/shopping.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/shopping.cc') diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index ebd5c9ed25..3f0a8f4a17 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -286,7 +286,7 @@ static bool _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); } @@ -295,9 +295,9 @@ static bool _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" ); + (total_cost - you.gold > 1) ? "s" : "" ); textcolor(LIGHTRED); } @@ -306,9 +306,9 @@ static bool _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" ); + (you.gold - total_cost > 1) ? "s" : "" ); textcolor(YELLOW); } -- cgit v1.2.3-54-g00ecf