summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 19:56:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 19:56:19 +0000
commit741f3db05f169b784e130a11e87f4485d6a679e4 (patch)
tree8d6004441e49d4158cd5ecf1a004944abc5b92d6 /crawl-ref/source/it_use2.cc
parent131216891cbe3539a153395c83f74ac52c216d0a (diff)
downloadcrawl-ref-741f3db05f169b784e130a11e87f4485d6a679e4.tar.gz
crawl-ref-741f3db05f169b784e130a11e87f4485d6a679e4.zip
Expand restore_stat() to allow for more fine-grained constrol of stat
restoration; the amount to be restored can now be specified. Use this where necessary. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4417 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 6ca4a09a46..f1ab3b3d40 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -321,7 +321,7 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known )
}
// give a message if no message otherwise
- if (!restore_stat(STAT_ALL, false) && nothing_happens)
+ if (!restore_stat(STAT_ALL, 0, false) && nothing_happens)
mpr( "You feel refreshed." );
break;
}