diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-07-23 19:13:33 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-07-23 19:13:33 +0200 |
commit | 16a06346aea16ffd6ee84081cedfdb0c75ac0b38 (patch) | |
tree | 61661f0914f1a19cc7f6a9bd04eabf9f8f6e846a /src/server/game/Groups/Group.cpp | |
parent | 82138bec18751eb889f364169cb53481eb90cdbd (diff) |
Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c64809207b5fa59d62e9870f58a36b6f3f
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r-- | src/server/game/Groups/Group.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index 4c5fca4ff47..91acaad9a0e 100644 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -38,6 +38,7 @@ #include "PhasingHandler.h" #include "Player.h" #include "Random.h" +#include "TerrainMgr.h" #include "UpdateData.h" #include "Util.h" #include "World.h" @@ -2179,7 +2180,7 @@ void Group::ResetInstances(uint8 method, bool isRaid, bool isLegacy, Player* Sen WorldSafeLocsEntry const* graveyardLocation = sObjectMgr->GetClosestGraveyard( WorldLocation(instanceEntrance->target_mapId, instanceEntrance->target_X, instanceEntrance->target_Y, instanceEntrance->target_Z), SendMsgTo->GetTeam(), nullptr); - uint32 const zoneId = sMapMgr->GetZoneId(PhasingHandler::GetEmptyPhaseShift(), graveyardLocation->Loc.GetMapId(), + uint32 const zoneId = sTerrainMgr.GetZoneId(PhasingHandler::GetEmptyPhaseShift(), graveyardLocation->Loc.GetMapId(), graveyardLocation->Loc.GetPositionX(), graveyardLocation->Loc.GetPositionY(), graveyardLocation->Loc.GetPositionZ()); for (MemberSlot const& member : GetMemberSlots()) |