diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-05 21:05:14 +0300 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-05 20:54:37 +0100 |
commit | 3b56c749239aef20773a7dde6e5fb726477dde48 (patch) | |
tree | ae66ca344d6f0e6eb0730de40753c8497a25af3a /crawl-ref/source/player.cc | |
parent | 51ded013829b4cd8f73fa7f6313e73d2f7550aa5 (diff) | |
download | crawl-ref-3b56c749239aef20773a7dde6e5fb726477dde48.tar.gz crawl-ref-3b56c749239aef20773a7dde6e5fb726477dde48.zip |
Use this instead of you in player::rot.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |