summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-12-05 22:41:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-12-05 22:41:11 +0100
commit0b01405b8673b0f1ba4ce38f131210d9073c3cf6 (patch)
tree4125ea86f15660b0e8bf37116167a52cc162f0d6 /crawl-ref/source/player.cc
parentf7af155c345d3f377fdb91a29653f97f13d994f5 (diff)
downloadcrawl-ref-0b01405b8673b0f1ba4ce38f131210d9073c3cf6.tar.gz
crawl-ref-0b01405b8673b0f1ba4ce38f131210d9073c3cf6.zip
Fix player::rot(0, x) not rotting maxhp (#119).
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 3f43ea3bdd..3f01f0b354 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6680,7 +6680,7 @@ bool player::rot(actor *who, int amount, int immediate, bool quiet)
{
ASSERT(!crawl_state.arena);
- if (amount <= 0)
+ if (amount <= 0 && immediate <= 0)
return (false);
if (res_rotting())