From 3b56c749239aef20773a7dde6e5fb726477dde48 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Thu, 5 Nov 2009 21:05:14 +0300 Subject: Use this instead of you in player::rot. Signed-off-by: Robert Vollmert --- crawl-ref/source/player.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 254c1c17ac..432a798bdf 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6823,7 +6823,7 @@ bool player::rot(actor *who, int amount, int immediate, bool quiet) if (amount <= 0) return (false); - if (you.res_rotting()) + if (this->res_rotting()) { mpr("You feel terrible."); return (false); @@ -6832,14 +6832,14 @@ bool player::rot(actor *who, int amount, int immediate, bool quiet) if (immediate > 0) rot_hp(immediate); - if (you.rotting < 40) + if (this->rotting < 40) { // Either this, or the actual rotting message should probably // be changed so that they're easier to tell apart. -- bwr mprf(MSGCH_WARN, "You feel your flesh %s away!", - you.rotting > 0 ? "rotting" : "start to rot"); + this->rotting > 0 ? "rotting" : "start to rot"); - you.rotting += amount; + this->rotting += amount; learned_something_new(TUT_YOU_ROTTING); } -- cgit v1.2.3-54-g00ecf