From a7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 18 Nov 2009 12:34:35 -0600 Subject: Clean up rotting resistance checks, as they're effectively boolean. --- crawl-ref/source/monster.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monster.cc') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 92b1fe91cf..0d6e8d0fe2 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -3464,7 +3464,7 @@ bool monsters::drain_exp(actor *agent, bool quiet, int pow) bool monsters::rot(actor *agent, int amount, int immediate, bool quiet) { - if (res_rotting() > 0 || amount <= 0) + if (res_rotting() || amount <= 0) return (false); if (!quiet && you.can_see(this)) -- cgit v1.2.3-54-g00ecf