]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/cmd.qc
Renamed team conversion functions.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / cmd.qc
index af228f729333bccaac7823ec8fb113fb219d0ab0..3be9fe0ddee779fcbc652f5a1d3bf563bee52836 100644 (file)
@@ -396,7 +396,7 @@ void ClientCommand_selectteam(entity caller, float request, float argc)
                        {
                                entity balance = TeamBalance_CheckAllowedTeams(caller);
                                TeamBalance_GetTeamCounts(balance, caller);
-                               if ((Team_IndexToBit(Team_TeamToNumber(selection)) &
+                               if ((Team_IndexToBit(Team_TeamToIndex(selection)) &
                                        TeamBalance_FindBestTeams(balance, caller, false)) == 0)
                                {
                                        Send_Notification(NOTIF_ONE, caller, MSG_INFO, INFO_TEAMCHANGE_LARGERTEAM);