mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Reduced number of cells (doubled max visibility distance).
Use 2D distance for visibility checks.
This commit is contained in:
parent
9254ca19e6
commit
d00a453863
9 changed files with 28 additions and 24 deletions
|
|
@ -723,7 +723,7 @@ bool GameObject::isVisibleForInState(Player const* u, bool inVisibleList) const
|
|||
|
||||
// check distance
|
||||
return IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject() +
|
||||
(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f) );
|
||||
(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f), false);
|
||||
}
|
||||
|
||||
void GameObject::Respawn()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue