GameRules: make `GameRules_teams(true)` imply `have_team_spawns = -1`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_keyhunt.qh
index 3903caa..5b0fb5b 100644 (file)
@@ -18,8 +18,7 @@ REGISTER_MUTATOR(kh, false)
                GameRules_teams(true);
         GameRules_limit_score(autocvar_g_keyhunt_point_limit);
         GameRules_limit_lead(autocvar_g_keyhunt_point_leadlimit);
-               if (autocvar_g_keyhunt_team_spawns)
-                       have_team_spawns = -1; // request team spawns
+        GameRules_spawning_teams(autocvar_g_keyhunt_team_spawns);
        }
 
        MUTATOR_ONROLLBACK_OR_REMOVE