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 2b7f060..0750b42 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;
                }
        }