From 43eabaff1b3aa8a72c37363eebb26f3160d840a8 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 6 Nov 2008 16:34:54 -0600 Subject: [svn] Fix a typo in canSeeOrDetect(). --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3