Core/Config: Force SaveRespawnTimeImmediately config to Enabled

Force SaveRespawnTimeImmediately config to Enabled to avoid assertions triggered at runtime when Disabled. It will be possible to Disable this config again only when all issues will be fixed.

(cherry picked from commit b89f3be8d5)
This commit is contained in:
jackpoz
2015-02-20 22:44:04 +01:00
committed by Duarte Duarte
parent b05caa738a
commit c6990e65bd

View File

@@ -1012,6 +1012,12 @@ void World::LoadConfigSettings(bool reload)
}
m_bool_configs[CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY] = sConfigMgr->GetBoolDefault("SaveRespawnTimeImmediately", true);
if (!m_bool_configs[CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY])
{
TC_LOG_WARN("server.loading", "SaveRespawnTimeImmediately triggers assertions when disabled, overridden to Enabled");
m_bool_configs[CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY] = true;
}
m_bool_configs[CONFIG_WEATHER] = sConfigMgr->GetBoolDefault("ActivateWeather", true);
m_int_configs[CONFIG_DISABLE_BREATHING] = sConfigMgr->GetIntDefault("DisableWaterBreath", SEC_CONSOLE);