X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fsv_cmd.qc;h=64d98f127b6591a0a559ebeefe1f2377f21d8ab1;hp=7166ab7cfd1156b9377724ac6f2586e591f24872;hb=e72ae8623dbd67dc7d85ed16fa4a18dd75663629;hpb=4577d2b7d194f707283a9adde614c2bfb41d7bd1 diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 7166ab7cfd..64d98f127b 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -1380,7 +1380,7 @@ void GameCommand_shuffleteams(float request) { entity tmp_player; int i; - float x, z, t_teams, t_players, team_color; + float x, t_teams, t_players, team_color; // count the total amount of players and total amount of teams t_players = 0; @@ -1417,7 +1417,7 @@ void GameCommand_shuffleteams(float request) } // finally, from the list made earlier, re-join the players in different order. - for(i = 1; i <= t_teams; ++i) + for (int i = 1; i <= t_teams; ++i) { // find out how many players to assign to this team x = (t_players / t_teams); @@ -1426,7 +1426,7 @@ void GameCommand_shuffleteams(float request) team_color = Team_NumberToTeam(i); // sort through the random list of players made earlier - for(z = 1; z <= maxclients; ++z) + for (int z = 1; z <= maxclients; ++z) { if (!(shuffleteams_teams[i] >= x)) {