]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 2e002eb1c53d827904846a4655e284a9414401f9..45871b7aeb60ad51101651ca3c019fdcd1c5a4d8 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