From fe732710aed998e5a6a53f8edc3573d8d4a3f706 Mon Sep 17 00:00:00 2001 From: insunaa Date: Fri, 16 Aug 2024 13:58:39 +0200 Subject: [PATCH] SafeLoc: Add Crossroads as Horde default (pending confirmation) --- src/game/Globals/GraveyardManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/Globals/GraveyardManager.cpp b/src/game/Globals/GraveyardManager.cpp index 20723b5d358..442e0ad1a17 100644 --- a/src/game/Globals/GraveyardManager.cpp +++ b/src/game/Globals/GraveyardManager.cpp @@ -140,7 +140,8 @@ WorldSafeLocsEntry const* GraveyardManager::GetClosestGraveYard(float x, float y const uint32 zoneId = sTerrainMgr.GetZoneId(mapId, x, y, z); const uint32 areaId = sTerrainMgr.GetAreaId(mapId, x, y, z); - constexpr uint32 fallbackSafeLocId = 4; + constexpr uint32 defaultGraveyardA = 4; + constexpr uint32 defaultGraveyardH = 10; WorldSafeLocsEntry const* graveyard = nullptr; if (areaId != 0) @@ -166,7 +167,7 @@ WorldSafeLocsEntry const* GraveyardManager::GetClosestGraveYard(float x, float y sLog.outErrorDb("Table `game_graveyard_zone` incomplete: Map %u Zone " "%u Area %u Team %u does not have a linked graveyard.", mapId, zoneId, areaId, uint32(team)); - graveyard = sWorldSafeLocsStore.LookupEntry(fallbackSafeLocId); + graveyard = sWorldSafeLocsStore.LookupEntry(team == Team::HORDE ? defaultGraveyardH : defaultGraveyardA); } return graveyard; }