]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reduce scoreboard_team_selection spam when team selection is enabled by the server
authorterencehill <piuntn@gmail.com>
Fri, 20 May 2022 23:28:49 +0000 (01:28 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 20 May 2022 23:28:49 +0000 (01:28 +0200)
qcsrc/server/client.qc

index 2e6e9e6b852c84a6b6ffe5bec87524fb59e6a260..68d396d60a7827beb1d8e75e9aa06e74cc291c83 100644 (file)
@@ -1949,7 +1949,8 @@ bool ShowTeamSelection(entity this)
 {
        if (!teamplay || autocvar_g_campaign || autocvar_g_balance_teams || this.team_selected || (CS(this).wasplayer && autocvar_g_changeteam_banned) || Player_HasRealForcedTeam(this))
                return false;
-       stuffcmd(this, "menu_showteamselect\n");
+       if (frametime) // once per frame is more than enough
+               stuffcmd(this, "scoreboard_team_selection\n");
        return true;
 }
 void Join(entity this)