From 167ca565d044915f01ead4b189754ab1c44cc981 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 10 Mar 2009 15:26:17 -0600 Subject: *Update bind sight spells code. --HG-- branch : trunk --- src/game/GameObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/GameObject.cpp') diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 8f620638b01..f967bb50dfc 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -754,7 +754,7 @@ bool GameObject::isVisibleForInState(Player const* u, bool inVisibleList) const } // check distance - return IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject() + + return IsWithinDistInMap(u->m_seer,World::GetMaxVisibleDistanceForObject() + (inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f), false); } -- cgit v1.2.3