From 12bf7e12974dd50248c762a23897fcc891ca32c2 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 24 Jul 2022 18:26:36 +0200 Subject: [PATCH] Don't allow opening scoreboard UI / team selection in demos --- qcsrc/client/hud/panel/scoreboard.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 83700a7e5e..83c487419b 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) -- 2.39.2