diff options
author | megamage <none@none> | 2009-02-25 20:52:20 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-25 20:52:20 -0600 |
commit | bf66375bc73c2b9dd7c2d26d7af25b111734c622 (patch) | |
tree | 67c3cf601faf32a03d16dfe7b02b2a938ec76ae7 /src/game/Player.cpp | |
parent | ccde296fd3822898e8959c009211fe880a0429f7 (diff) |
*Update active object code. By VladimirMangos.
--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 efa414fbfaf..4114f4da4ac 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17578,7 +17578,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; |