aboutsummaryrefslogtreecommitdiff
path: root/src/game/DynamicObject.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-04 17:22:43 -0600
committermegamage <none@none>2009-02-04 17:22:43 -0600
commitd69198732e65002b53bab3a85779107490fe4dd2 (patch)
treee1f4b11f1964cc42ac05c79bdc43eedc1db16866 /src/game/DynamicObject.cpp
parent5d4d9530556eb66940775f12c3cc5f3c115447ca (diff)
parentc745eba4a1d122b4184b27a982674c86ff193c23 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/DynamicObject.cpp')
-rw-r--r--src/game/DynamicObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp
index 1e356cd95d3..09856f1233e 100644
--- a/src/game/DynamicObject.cpp
+++ b/src/game/DynamicObject.cpp
@@ -156,7 +156,7 @@ void DynamicObject::Delay(int32 delaytime)
bool DynamicObject::isVisibleForInState(Player const* u, bool inVisibleList) const
{
- return IsInWorld() && u->IsInWorld()
+ return IsInWorld() && u->IsInWorld()
&& (IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject()+(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f), false)
|| GetCasterGUID() == u->GetGUID());
}