]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't handle minigame commands while in demo mode
authorMario <mario.mario@y7mail.com>
Tue, 29 Dec 2020 06:39:49 +0000 (16:39 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 29 Dec 2020 06:39:49 +0000 (16:39 +1000)
qcsrc/common/minigames/cl_minigames.qc

index 2e5b30c61cbfae9f5ef5935e4aa4a100e78dd515..e5fe71642693da115116a847b8a24af294985ed6 100644 (file)
@@ -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