From 0b6e5d1712c75440273ee5d34d24186867e09c94 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 2 May 2021 14:49:52 +0200 Subject: [PATCH] Don't show a confirmation dialogue when starting a demo while playing back a demo --- qcsrc/menu/xonotic/dialog_multiplayer_media_demo.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.qc b/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.qc index 6ba33e2a7..66019c4bf 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_media_demo.qc @@ -10,7 +10,7 @@ const float DMO_PLAY = 1; const float DMO_TIME = 2; void DemoConfirm_Check_Gamestatus(entity btn, entity me) { - if(!(gamestatus & (GAME_CONNECTED | GAME_ISSERVER))) // we're not in a match, lets watch the demo + if(!(gamestatus & (GAME_CONNECTED | GAME_ISSERVER)) || isdemo()) // we're not in a match, lets watch the demo { if(btn.democlicktype == DMO_PLAY) { demolist.startDemo(demolist); } -- 2.39.2