From: havoc Date: Sat, 11 Sep 2004 00:47:20 +0000 (+0000) Subject: make CL_NextDemo put up menu if there's no demo to play (this makes startdemos comman... X-Git-Tag: xonotic-v0.1.0preview~5622 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7697052155d077fd9816aeb879951cc0895c9b02;p=xonotic%2Fdarkplaces.git make CL_NextDemo put up menu if there's no demo to play (this makes startdemos command put up menu if there are no demos, better than staring at console) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4471 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_demo.c b/cl_demo.c index 2b7f060b..0750b423 100644 --- 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; } }