From 07ef1ffe1ce0431004b79ede171f3f6bfa16549f Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 21 Oct 2009 15:42:49 +0200 Subject: Simply visibility checks in fight.cc. Make use of actor::visible_to. Also fix player::visible_to to make the player invisible to himself when not seeing invisible. --- crawl-ref/source/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 24c828fe45..3892682d80 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7356,7 +7356,7 @@ bool player::invisible() const bool player::visible_to(const actor *looker) const { if (this == looker) - return (true); + return (can_see_invisible() || !invisible()); const monsters* mon = dynamic_cast(looker); return mons_player_visible(mon); -- cgit v1.2.3-54-g00ecf