]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed AutoBalanceBots fully this time.
authorLyberta <lyberta@lyberta.net>
Fri, 1 Dec 2017 20:11:48 +0000 (23:11 +0300)
committerLyberta <lyberta@lyberta.net>
Fri, 1 Dec 2017 20:11:48 +0000 (23:11 +0300)
qcsrc/server/teamplay.qc

index 82977e6da541ab024ec9fc1d470ca4be1be1c036..33ad8f8ed634f6123bf3a5c247eb83fad0dccf3d 100644 (file)
@@ -1038,6 +1038,10 @@ void AutoBalanceBots(int source_team, int destination_team)
                        break;
                }
        }
+       if (num_players_source_team < 0)
+       {
+               return;
+       }
        switch (destination_team)
        {
                case 1: