mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 16:37:04 +00:00
[11202] Schedule AI notify at adding to world
This fixes the problem, that creatures, added at grid loading, do not start attack each other More shedule -> schedule fixes added, removed unused Map::PlayerRelocationNotify function
This commit is contained in:
parent
6529e69924
commit
fcc09483ad
5 changed files with 10 additions and 48 deletions
|
|
@ -1955,8 +1955,8 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
|||
MovementInfo m_movementInfo;
|
||||
|
||||
void ScheduleAINotify(uint32 delay);
|
||||
bool IsAINotifySheduled() const { return m_AINotifySheduled;}
|
||||
void _SetAINotifySheduled(bool on) { m_AINotifySheduled = on;} // only for call from RelocationNotifyEvent class code
|
||||
bool IsAINotifyScheduled() const { return m_AINotifyScheduled;}
|
||||
void _SetAINotifyScheduled(bool on) { m_AINotifyScheduled = on;} // only for call from RelocationNotifyEvent code
|
||||
void OnRelocated();
|
||||
|
||||
protected:
|
||||
|
|
@ -2026,7 +2026,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
|||
|
||||
UnitVisibility m_Visibility;
|
||||
Position m_last_notified_position;
|
||||
bool m_AINotifySheduled;
|
||||
bool m_AINotifyScheduled;
|
||||
|
||||
Diminishing m_Diminishing;
|
||||
// Manage all Units threatening us
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue