summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 16:32:21 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 16:32:21 +0300
commita4eda3c37bb9ec6d9b847e827390a66062229b99 (patch)
tree446426006aee0011b8c5fec7c7e4104f35522d18 /crawl-ref/source/player.cc
parentce42ec3ebfa796ba601e46d27c7c4f5e01489970 (diff)
downloadcrawl-ref-a4eda3c37bb9ec6d9b847e827390a66062229b99.tar.gz
crawl-ref-a4eda3c37bb9ec6d9b847e827390a66062229b99.zip
Use this instead of &you in player::melee_evasion.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index cb352bfd18..f54082c9cf 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6344,7 +6344,7 @@ int player::armour_class() const
int player::melee_evasion(const actor *act) const
{
return (player_evasion()
- - ((!act || act->visible_to(&you)) ? 0 : 10)
+ - ((!act || act->visible_to(this)) ? 0 : 10)
- (you_are_delayed()
&& !is_run_delay(current_delay_action())? 5 : 0));
}