]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
make CL_NextDemo put up menu if there's no demo to play (this makes startdemos comman...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Sep 2004 00:47:20 +0000 (00:47 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Sep 2004 00:47:20 +0000 (00:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4471 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c

index 2b7f060b062bb0fe67b52814721799f29a8da0c8..0750b423e340c41fe18643ed1ac9066be0eb003f 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -56,6 +56,9 @@ void CL_NextDemo (void)
                {
                        Con_Print("No demos listed with startdemos\n");
                        cls.demonum = -1;
+                       // put up menu instead of staring at console
+                       if (key_dest != key_menu)
+                               M_ToggleMenu_f();
                        return;
                }
        }