]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Automatically keep bots balanced even if g_balance_teams and g_balance_teams_prevent_...
authorterencehill <piuntn@gmail.com>
Sat, 8 Jun 2019 11:52:17 +0000 (13:52 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 8 Jun 2019 11:53:58 +0000 (13:53 +0200)
qcsrc/server/teamplay.qc

index f2e24a7a57a0722d69af094465d76cb7f8118505..ff9438e76d84b205679a05982d5b8bc1eb0b57f3 100644 (file)
@@ -865,12 +865,10 @@ int TeamBalance_CompareTeams(entity balance, int team_index_a, int team_index_b,
 
 void TeamBalance_AutoBalanceBots()
 {
-       if (!autocvar_g_balance_teams ||
-               !autocvar_g_balance_teams_prevent_imbalance)
-       {
-               return;
-       }
-       //PrintToChatAll("TeamBalance_AutoBalanceBots");
+       // checks disabled because we always want auto-balanced bots
+       //if (!(autocvar_g_balance_teams && autocvar_g_balance_teams_prevent_imbalance))
+       //      return;
+
        entity balance = TeamBalance_CheckAllowedTeams(NULL);
        TeamBalance_GetTeamCounts(balance, NULL);
        int smallest_team_index = 0;