[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:
SilverIce 2011-02-23 17:04:54 +02:00
parent 6529e69924
commit fcc09483ad
5 changed files with 10 additions and 48 deletions

View file

@ -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