mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
Move visibility update functions to more appropriate classes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4041121fd8
commit
63897d56d7
10 changed files with 47 additions and 44 deletions
|
|
@ -474,6 +474,8 @@ class MANGOS_DLL_SPEC WorldObject : public Object
|
|||
virtual void SaveRespawnTime() {}
|
||||
void AddObjectToRemoveList();
|
||||
|
||||
void UpdateObjectVisibility();
|
||||
|
||||
// main visibility check function in normal case (ignore grey zone distance check)
|
||||
bool isVisibleFor(Player const* u, WorldObject const* viewPoint) const { return isVisibleForInState(u,viewPoint,false); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue