summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-27 16:39:05 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-27 16:39:05 +0000
commit551f48c7e461b3f5aff4415580fa2a235d74da5a (patch)
tree648e2d310682b02b19f8a19fff8abdfd03c1d11c /crawl-ref/source/player.cc
parentd03ad7b05a931a1bd0bc69eb809d30fca8177cb6 (diff)
downloadcrawl-ref-551f48c7e461b3f5aff4415580fa2a235d74da5a.tar.gz
crawl-ref-551f48c7e461b3f5aff4415580fa2a235d74da5a.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6170 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index a0acffc7c2..32f1763554 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6447,8 +6447,7 @@ void player::petrify(int str)
if (str > petrif && (petrif < 3 || one_chance_in(petrif)))
petrif = str;
- if (petrif > 13)
- petrif = 13;
+ petrif = std::min(13, petrif);
}
void player::slow_down(int str)