]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix join bug when g_balance_teams is 0
authorz411 <z411@omaera.org>
Tue, 30 May 2023 04:25:45 +0000 (00:25 -0400)
committerz411 <z411@omaera.org>
Tue, 30 May 2023 04:25:45 +0000 (00:25 -0400)
qcsrc/server/teamplay.qc

index 050667ba99b0b9e3d50a594e7aaa18f54fc64c31..a012e7fc89e0cb2a883d5b13ec23495678e44446 100644 (file)
@@ -292,10 +292,10 @@ bool SetPlayerTeam(entity player, int team_index, int type)
                        Kill_Notification(NOTIF_ONE_ONLY, player, MSG_CENTER, CPID_IDLING);
                        CS(player).idlekick_lasttimeleft = 0;
                }
-               else if (player.wants_join > 0)
+               else if (player.wants_join)
                {
-                       LOG_INFOF("Triggered by %s (%d)", player.netname, player.wants_join);
                        player.wants_join = 0;
+                       player.team_selected = false;
                        Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_QUEUE, player.netname);
                }
                else if (!CS(player).just_joined && player.frags != FRAGS_SPECTATOR)