]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/scoreboard.qc
Don't allow opening scoreboard UI / team selection in demos
[xonotic/xonotic-data.pk3dir.git] / 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)
 {
+       if(isdemo()) return;
+
        if (mode == 1)
        {
                if (scoreboard_ui_enabled == 2 || !teamplay || intermission)