diff options
author | megamage <none@none> | 2009-02-26 20:43:35 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-26 20:43:35 -0600 |
commit | d3a69006675bb5317fab76584d5990b36c2fd5a5 (patch) | |
tree | 8a0f3e0033eb694d5aba06db5c1ecc02b690099e /src/game/Player.cpp | |
parent | 39c513776c5dde8b5732df5ba2467d9e9e3e84fd (diff) | |
parent | bc54e91afff9b9a53902439441fa2e63e3da1a9a (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index bc0c5c59bfa..fb5fcb3f089 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -18295,7 +18295,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool { // Units far than max visible distance for creature or not in our map are not visible too if (!target->IsWithinDistInMap(u - , u->isActive() ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) + , u->isActiveObject() ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) : (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f)) , is3dDistance)) return false; |