From: Mario Date: Tue, 29 Dec 2020 06:39:49 +0000 (+1000) Subject: Don't handle minigame commands while in demo mode X-Git-Tag: xonotic-v0.8.5~617 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1b54e4d549311029d2d2e71c635f0c6d75c1a6e6;p=xonotic%2Fxonotic-data.pk3dir.git Don't handle minigame commands while in demo mode --- diff --git a/qcsrc/common/minigames/cl_minigames.qc b/qcsrc/common/minigames/cl_minigames.qc index 2e5b30c61..e5fe71642 100644 --- a/qcsrc/common/minigames/cl_minigames.qc +++ b/qcsrc/common/minigames/cl_minigames.qc @@ -393,6 +393,8 @@ MUTATOR_HOOKFUNCTION(minigames, HUD_Command) if(argv(1) == "minigame") { + if (isdemo()) + return true; // minigames can't function properly in demo mode if (HUD_MinigameMenu_IsOpened()) HUD_MinigameMenu_Close(NULL, NULL, NULL); else