diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-01-06 16:54:16 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-08-12 17:56:15 +0200 |
| commit | cccc062ea002ee63e0288d5a71356f45f7094287 (patch) | |
| tree | 4e4700e5a2b705844442bf920e0c8d65ac95111d /src/server/game/Maps/Map.h | |
| parent | f5a2e2ae13e3f7b505b069c1cd98e3157c31c83a (diff) | |
Core/Misc: Remove boost::heap::fibonacci_heap from header files
(cherry picked from commit e8e330addd55dffa8e34716c7e1969ad243d65b3)
Diffstat (limited to 'src/server/game/Maps/Map.h')
| -rw-r--r-- | src/server/game/Maps/Map.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 66c8e0c9059..bf013d0d6ad 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -32,7 +32,6 @@ #include "SpawnData.h" #include "Timer.h" #include "Transaction.h" -#include <boost/heap/fibonacci_heap.hpp> #include <bitset> #include <list> #include <memory> @@ -293,8 +292,7 @@ struct CompareRespawnInfo bool operator()(RespawnInfo const* a, RespawnInfo const* b) const; }; using ZoneDynamicInfoMap = std::unordered_map<uint32 /*zoneId*/, ZoneDynamicInfo>; -using RespawnListContainer = boost::heap::fibonacci_heap<RespawnInfo*, boost::heap::compare<CompareRespawnInfo>>; -using RespawnListHandle = RespawnListContainer::handle_type; +struct RespawnListContainer; using RespawnInfoMap = std::unordered_map<ObjectGuid::LowType, RespawnInfo*>; struct RespawnInfo { @@ -303,7 +301,6 @@ struct RespawnInfo uint32 entry; time_t respawnTime; uint32 gridId; - RespawnListHandle handle; }; inline bool CompareRespawnInfo::operator()(RespawnInfo const* a, RespawnInfo const* b) const { @@ -845,7 +842,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType> m_activeNonPlayers.erase(obj); } - RespawnListContainer _respawnTimes; + std::unique_ptr<RespawnListContainer> _respawnTimes; RespawnInfoMap _creatureRespawnTimesBySpawnId; RespawnInfoMap _gameObjectRespawnTimesBySpawnId; RespawnInfoMap& GetRespawnMapForType(SpawnObjectType type) |
