[svn] Fix a typo in canSeeOrDetect().

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-06 16:34:54 -06:00
parent b22c10128d
commit 43eabaff1b
+1 -1
View File
@@ -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;