summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-18 12:34:35 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-18 12:34:35 -0600
commita7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d (patch)
tree8eab6fe7c8a5fcc497ca2ae90872934141b0a507 /crawl-ref/source/player.cc
parent67d62e68ee2a76dcaf82421962a1fb2a2d4000f7 (diff)
downloadcrawl-ref-a7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d.tar.gz
crawl-ref-a7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d.zip
Clean up rotting resistance checks, as they're effectively boolean.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index be27606499..0900f1bae6 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6441,8 +6441,8 @@ int player::res_poison() const
int player::res_rotting() const
{
- if (this->is_undead
- && (this->is_undead != US_SEMI_UNDEAD || this->hunger_state < HS_SATIATED))
+ if (is_undead
+ && (is_undead != US_SEMI_UNDEAD || hunger_state < HS_SATIATED))
{
return (1);
}
@@ -6683,7 +6683,7 @@ bool player::rot(actor *who, int amount, int immediate, bool quiet)
if (amount <= 0)
return (false);
- if (this->res_rotting())
+ if (res_rotting())
{
mpr("You feel terrible.");
return (false);
@@ -6802,7 +6802,7 @@ bool player::sicken(int amount)
{
ASSERT(!crawl_state.arena);
- if (this->res_rotting() || amount <= 0)
+ if (res_rotting() || amount <= 0)
return (false);
mpr( "You feel ill." );