From: terencehill Date: Sun, 24 Jul 2022 16:26:36 +0000 (+0200) Subject: Don't allow opening scoreboard UI / team selection in demos X-Git-Tag: xonotic-v0.8.6~405 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=12bf7e12974dd50248c762a23897fcc891ca32c2;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow opening scoreboard UI / team selection in demos --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 83700a7e5..83c487419 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -184,6 +184,8 @@ void HUD_Scoreboard_UI_Disable_Instantly() // mode: 0 normal, 1 team selection void Scoreboard_UI_Enable(int mode) { + if(isdemo()) return; + if (mode == 1) { if (scoreboard_ui_enabled == 2 || !teamplay || intermission)