*Fix a typo in the last commit.
--HG-- branch : trunk
This commit is contained in:
+4
-3
@@ -17521,9 +17521,10 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool
|
|||||||
else // distance for show creature
|
else // distance for show creature
|
||||||
{
|
{
|
||||||
// Units far than max visible distance for creature or not in our map are not visible too
|
// Units far than max visible distance for creature or not in our map are not visible too
|
||||||
if (!target->IsWithinDistInMap(u, u->isActive()
|
if (!target->IsWithinDistInMap(u
|
||||||
? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance()))
|
, u->isActive() ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance()))
|
||||||
: (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f), is3dDistance)))
|
: (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f))
|
||||||
|
, is3dDistance))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user