]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Reduce scoreboard_team_selection spam when team selection is enabled by the server
[xonotic/xonotic-data.pk3dir.git] / 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)