mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 04:37:04 +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
|
|
@ -1102,7 +1102,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
|||
void SetVisibility(UnitVisibility x);
|
||||
|
||||
// common function for visibility checks for player/creatures with detection code
|
||||
bool isVisibleForOrDetect(Unit const* u, bool detect, bool inVisibleList = false) const;
|
||||
bool isVisibleForOrDetect(Unit const* u, bool detect, bool inVisibleList = false, bool is3dDistance = true) const;
|
||||
bool canDetectInvisibilityOf(Unit const* u) const;
|
||||
|
||||
// virtual functions for all world objects types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue