From: z411 Date: Tue, 30 May 2023 04:25:45 +0000 (-0400) Subject: Fix join bug when g_balance_teams is 0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4d4db895929191825de1eb1c59d1e36c7e8fe81c;p=xonotic%2Fxonotic-data.pk3dir.git Fix join bug when g_balance_teams is 0 --- diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 050667ba9..a012e7fc8 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -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)