]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Quickmenu: make sure player team info is updated before showing a player list
authorterencehill <piuntn@gmail.com>
Sun, 10 Apr 2022 21:18:32 +0000 (23:18 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 10 Apr 2022 21:18:32 +0000 (23:18 +0200)
qcsrc/client/hud/panel/quickmenu.qc

index 245bdad1ba9b3d7178830fc470913ef4222bdc1d..01fae6e0203104e2df63874db8581b32bdced4b5 100644 (file)
@@ -766,6 +766,7 @@ void HUD_Quickmenu_PlayerListEntries(string cmd, int teamplayers, bool without_m
        if(teamplayers && !team_count)
                return;
 
+       Scoreboard_UpdatePlayerTeams();
        for(pl = players.sort_next; pl; pl = pl.sort_next)
        {
                if(teamplayers == 1 && (pl.team != myteam || pl.team == NUM_SPECTATOR)) // only own team players