From e7691a83021644b1088e4e4f266b5e5b4fa64f48 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 5 Jul 2026 21:43:22 +0200 Subject: [PATCH] Core/Disables: Added new map type names for logging --- src/server/game/Conditions/DisableMgr.cpp | 27 ++++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp index a09abd8bc5..76fb75f783 100644 --- a/src/server/game/Conditions/DisableMgr.cpp +++ b/src/server/game/Conditions/DisableMgr.cpp @@ -32,18 +32,21 @@ namespace DisableMgr { -char const* MapTypeNames[] = -{ - "World", - "Dungeon", - "Raid", - "Battleground", - "Arena", - "Scenario" -}; - namespace { + constexpr std::string_view MapTypeNames[] = + { + "World", + "Dungeon", + "Raid", + "Battleground", + "Arena", + "Scenario", + "WowLabs", + "House interior", + "Housing neighborhood" + }; + struct DisableData { uint16 flags; @@ -226,6 +229,8 @@ void LoadDisables() if (flags & VMAP::VMAP_DISABLE_LOS) TC_LOG_INFO("misc", "LoS disabled for {} map {}.", MapTypeNames[mapEntry->InstanceType], entry); break; + default: + break; } break; } @@ -237,7 +242,7 @@ void LoadDisables() TC_LOG_ERROR("sql.sql", "Map entry {} from `disables` doesn't exist in dbc, skipped.", entry); continue; } - if (mapEntry->InstanceType <= MAP_SCENARIO) + if (mapEntry->InstanceType <= std::ssize(MapTypeNames)) TC_LOG_INFO("misc", "Pathfinding disabled for {} map {}.", MapTypeNames[mapEntry->InstanceType], entry); break; }