From: terencehill Date: Thu, 20 Feb 2014 23:22:13 +0000 (+0100) Subject: CheckAllowedTeams must be called before FindSmallestTeam X-Git-Tag: xonotic-v0.8.0~226^2~7^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=83fec76999cac6042182490dbeb3fe7b7596f45a;p=xonotic%2Fxonotic-data.pk3dir.git CheckAllowedTeams must be called before FindSmallestTeam --- diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 2e002eb1c..45871b7ae 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -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