summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.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/acr.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/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 166c029f5c..d813caf12a 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2410,7 +2410,7 @@ void process_command( command_type cmd )
case CMD_LIST_GOLD:
mprf("You have %d gold piece%s.",
- you.gold, (you.gold > 1) ? "s" : "");
+ you.gold, you.gold > 1 ? "s" : "");
break;
case CMD_INSCRIBE_ITEM:
@@ -2857,12 +2857,11 @@ static void _decrement_durations()
#if DEBUG_DIAGNOSTICS || DEBUG_SACRIFICE || DEBUG_PIETY
mpr("Piety increases by 1 due to piety pool.", MSGCH_DIAGNOSTICS);
- if (!you.duration[DUR_PIETY_POOL])
+ if (you.duration[DUR_PIETY_POOL] == 0)
mpr("Piety pool is now empty.", MSGCH_DIAGNOSTICS);
#endif
}
-
if (!you.permanent_levitation() && !you.permanent_flight())
{
if (_decrement_a_duration(DUR_LEVITATION,