*Update relocation notification code. Always store pointers instead of guids.
--HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -388,6 +388,7 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
|
||||
bool ActiveObjectsNearGrid(uint32 x, uint32 y) const;
|
||||
|
||||
void AddUnitToNotify(Unit* unit);
|
||||
void RemoveUnitFromNotify(int32 slot);
|
||||
void RelocationNotify();
|
||||
|
||||
void SendToPlayers(WorldPacket const* data) const;
|
||||
@@ -496,7 +497,7 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
|
||||
time_t i_gridExpiry;
|
||||
|
||||
bool i_lock;
|
||||
std::vector<uint64> i_unitsToNotifyBacklog;
|
||||
std::vector<Unit*> i_unitsToNotifyBacklog;
|
||||
std::vector<Unit*> i_unitsToNotify;
|
||||
std::set<WorldObject *> i_objectsToRemove;
|
||||
std::map<WorldObject*, bool> i_objectsToSwitch;
|
||||
|
||||
Reference in New Issue
Block a user