summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-18 09:33:06 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-18 09:33:06 +0000
commit3adabca6afdfb742967318d121b06c27d9845f32 (patch)
tree68e3f773d09ca9694d96b69be387c25729ead6d5
parent90f5308b717e6838fff3a50dcd9bf9318d24d2ca (diff)
downloadcrawl-ref-3adabca6afdfb742967318d121b06c27d9845f32.tar.gz
crawl-ref-3adabca6afdfb742967318d121b06c27d9845f32.zip
Actors are now always visible to themselves. If an actor should behave
differently if it is invisble yet can't see invisible then that will have to be be special cased, rather than using can_see() or visible_to(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8541 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/mon-util.cc2
-rw-r--r--crawl-ref/source/player.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index a3ca0fe74d..b7106a1a75 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -7492,7 +7492,7 @@ bool monsters::invisible() const
bool monsters::visible_to(const actor *looker) const
{
if (this == looker)
- return (!invisible() || can_see_invisible());
+ return (true);
if (looker->atype() == ACT_PLAYER)
return player_monster_visible(this);
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index e2a61eef58..ebb8e10058 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -7124,7 +7124,7 @@ bool player::invisible() const
bool player::visible_to(const actor *looker) const
{
if (this == looker)
- return (!invisible() || can_see_invisible());
+ return (true);
const monsters* mon = dynamic_cast<const monsters*>(looker);
return mons_player_visible(mon);