@@ -4459,24 +4459,26 @@ void CTFGameRules::Activate()
44594459 }
44604460
44614461#if defined(QUIVER_DLL) || defined(QUIVER_CLIENT_DLL)
4462- if (qf_allow_tdm.GetBool() &&
4463- (m_nGameType == TF_GAMETYPE_UNDEFINED ||
4462+ if (m_nGameType == TF_GAMETYPE_UNDEFINED ||
44644463 StringHasPrefix(STRING(gpGlobals->mapname), "tdm_") ||
4465- StringHasPrefix(STRING(gpGlobals->mapname), "dm_")))
4464+ StringHasPrefix(STRING(gpGlobals->mapname), "dm_"))
44664465 {
4467- // no fraglimit will disable it too.
4468- if (qf_tdm_fraglimit.GetInt() > 0)
4466+ if (qf_allow_tdm.GetBool())
44694467 {
4470- if (fraglimit.GetInt() == 0)
4468+ // no fraglimit will disable it too.
4469+ if (qf_tdm_fraglimit.GetInt() > 0)
44714470 {
4472- fraglimit.SetValue(qf_tdm_fraglimit.GetInt());
4473- }
4471+ if (fraglimit.GetInt() == 0)
4472+ {
4473+ fraglimit.SetValue(qf_tdm_fraglimit.GetInt());
4474+ }
44744475
4475- m_nGameType.Set(QF_GAMETYPE_TDM);
4476- qf_gamemode_tdm.SetValue(1);
4476+ m_nGameType.Set(QF_GAMETYPE_TDM);
4477+ qf_gamemode_tdm.SetValue(1);
44774478
4478- Msg("Executing team deathmatch config file\n");
4479- engine->ServerCommand("exec config_tdm.cfg\n");
4479+ Msg("Executing team deathmatch config file\n");
4480+ engine->ServerCommand("exec config_tdm.cfg\n");
4481+ }
44804482 }
44814483 }
44824484#endif
0 commit comments