diff options
author | megamage <none@none> | 2008-12-06 15:24:37 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-06 15:24:37 -0600 |
commit | fab500b8f0c1806e01f7c1e7ab4e0c1bda11f607 (patch) | |
tree | 1f9ba6af7e72b020164608e70a4398adc37df683 /src | |
parent | c5593ef779a4ba7bbe9df391bc0defd3bf6c33a1 (diff) |
*Fix a typo in the last commit.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ac250640025..7cd9661388b 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17521,9 +17521,10 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool 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, u->isActive() - ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) - : (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f), is3dDistance))) + if (!target->IsWithinDistInMap(u + , u->isActive() ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) + : (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f)) + , is3dDistance)) return false; } |