Don't allow opening scoreboard UI / team selection in demos
authorterencehill <piuntn@gmail.com>
Sun, 24 Jul 2022 16:26:36 +0000 (18:26 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 24 Jul 2022 16:26:36 +0000 (18:26 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index 83700a7e5efe52ece3d5b7cedf510172e0972ffc..83c487419b7fe00a35b053594abbec9fca64a095 100644 (file)
@@ -184,6 +184,8 @@ void HUD_Scoreboard_UI_Disable_Instantly()
 // mode: 0 normal, 1 team selection
 void Scoreboard_UI_Enable(int mode)
 {
 // 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)
        if (mode == 1)
        {
                if (scoreboard_ui_enabled == 2 || !teamplay || intermission)