From: terencehill Date: Sun, 2 May 2021 12:49:52 +0000 (+0200) Subject: Don't show a confirmation dialogue when starting a demo while playing back a demo X-Git-Tag: xonotic-v0.8.5~422 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0b6e5d1712c75440273ee5d34d24186867e09c94;p=xonotic%2Fxonotic-data.pk3dir.git Don't show a confirmation dialogue when starting a demo while playing back a demo --- 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); }