mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
feat(Core): Config to disable all Wintergrasp processing (#13086)
* feat(Core): Config to disable all Wintergrasp processing * Use 2 instead of -1 - configs are parsed as uint * Fix build warnings
This commit is contained in:
@@ -40,6 +40,12 @@ BattlefieldMgr* BattlefieldMgr::instance()
|
||||
|
||||
void BattlefieldMgr::InitBattlefield()
|
||||
{
|
||||
if (sWorld->getIntConfig(CONFIG_WINTERGRASP_ENABLE) == 2)
|
||||
{
|
||||
LOG_INFO("server.loading", "Battlefield: Wintergrasp is disabled.");
|
||||
LOG_INFO("server.loading", " ");
|
||||
return;
|
||||
}
|
||||
Battlefield* pBf = new BattlefieldWG;
|
||||
// respawn, init variables
|
||||
if (!pBf->SetupBattlefield())
|
||||
|
||||
Reference in New Issue
Block a user