GameRules: make `GameRules_teams(true)` imply `have_team_spawns = -1`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_tdm.qh
index 5946f84..bfff9cc 100644 (file)
@@ -18,8 +18,7 @@ REGISTER_MUTATOR(tdm, false)
                GameRules_teams(true);
                GameRules_limit_score(autocvar_g_tdm_point_limit);
         GameRules_limit_lead(autocvar_g_tdm_point_leadlimit);
-               if (autocvar_g_tdm_team_spawns)
-                       have_team_spawns = -1; // request team spawns
+        GameRules_spawning_teams(autocvar_g_tdm_team_spawns);
        }
 
        MUTATOR_ONROLLBACK_OR_REMOVE