feat(Core/Config): Enable/Disable Debug BG/Arena (#3001)

This commit is contained in:
Kitzunu
2020-06-21 13:17:07 +02:00
committed by GitHub
parent 139743004b
commit 0b4af00ab7
6 changed files with 59 additions and 7 deletions

View File

@@ -1404,6 +1404,10 @@ void World::LoadConfigSettings(bool reload)
m_int_configs[CONFIG_WAYPOINT_MOVEMENT_STOP_TIME_FOR_PLAYER] = sConfigMgr->GetIntDefault("WaypointMovementStopTimeForPlayer", 120);
//Debug
m_bool_configs[CONFIG_DEBUG_BATTLEGROUND] = sConfigMgr->GetBoolDefault("Debug.Battleground", false);
m_bool_configs[CONFIG_DEBUG_ARENA] = sConfigMgr->GetBoolDefault("Debug.Arena", false);
// call ScriptMgr if we're reloading the configuration
sScriptMgr->OnAfterConfigLoad(reload);
}

View File

@@ -176,6 +176,8 @@ enum WorldBoolConfigs
CONFIG_ITEMDELETE_METHOD,
CONFIG_ITEMDELETE_VENDOR,
CONFIG_SET_ALL_CREATURES_WITH_WAYPOINT_MOVEMENT_ACTIVE,
CONFIG_DEBUG_BATTLEGROUND,
CONFIG_DEBUG_ARENA,
BOOL_CONFIG_VALUE_COUNT
};