[svn] Disable LOS check in canSeeOrDetect. It has been proved that CPU cannot sustain so much calculation.
--HG-- branch : trunk
This commit is contained in:
@@ -1529,7 +1529,8 @@ bool Creature::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) co
|
||||
}
|
||||
|
||||
// Now check is target visible with LoS
|
||||
return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ());
|
||||
//return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Creature::IsWithinSightDist(Unit const* u) const
|
||||
|
||||
+3
-1
@@ -17284,8 +17284,10 @@ bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) cons
|
||||
return false;
|
||||
}
|
||||
|
||||
// If use this server will be too laggy
|
||||
// Now check is target visible with LoS
|
||||
return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ());
|
||||
//return u->IsWithinLOS(GetPositionX(),GetPositionY(),GetPositionZ());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Player::IsVisibleInGridForPlayer( Player const * pl ) const
|
||||
|
||||
Reference in New Issue
Block a user