diff options
author | megamage <none@none> | 2009-06-09 16:05:14 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-09 16:05:14 -0500 |
commit | 2625b4b6c61f3e8bb95454a2b97e7434bfb22b0b (patch) | |
tree | 8e56b99112aba05f45dc8ff3bd8085feadc4dd98 /src/game/Map.h | |
parent | 0643c3df83c36ae7ab0196859e476395e42a4ba0 (diff) |
*Update relocation notification code. Always store pointers instead of guids.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.h')
-rw-r--r-- | src/game/Map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Map.h b/src/game/Map.h index 9e9f7a9d402..e40c6118ea6 100644 --- a/src/game/Map.h +++ b/src/game/Map.h @@ -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; |