CheckAllowedTeams must be called before FindSmallestTeam
authorterencehill <piuntn@gmail.com>
Thu, 20 Feb 2014 23:22:13 +0000 (00:22 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 20 Feb 2014 23:22:13 +0000 (00:22 +0100)
qcsrc/server/command/sv_cmd.qc

index 2e002eb..45871b7 100644 (file)
@@ -1079,6 +1079,7 @@ void GameCommand_moveplayer(float request, float argc)
                                                                }
                                                                else if(team_id == 0)  // auto team
                                                                {
+                                                                       CheckAllowedTeams(client);
                                                                        team_id = Team_NumberToTeam(FindSmallestTeam(client, FALSE));
                                                                }
                                                                else