diff options
author | megamage <none@none> | 2008-11-06 16:34:54 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-06 16:34:54 -0600 |
commit | 43eabaff1b3aa8a72c37363eebb26f3160d840a8 (patch) | |
tree | cf9e007c0ad85421f37deeebf5e37a1d7833801b /src | |
parent | b22c10128d1bf8f3d27ae14fb181fd708e63bc0c (diff) |
[svn] Fix a typo in canSeeOrDetect().
--HG--
branch : trunk
Diffstat (limited to 'src')
-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 e02ac468244..4b8a1e00d40 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17247,7 +17247,7 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) cons else // distance for show creature { // Units far than max visible distance for creature or not in our map are not visible too - if (!target->IsWithinDistInMap(u, target->isActive() + if (!target->IsWithinDistInMap(u, u->isActive() ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) : (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f)))) return false; |