From: havoc Date: Mon, 7 Feb 2005 17:46:55 +0000 (+0000) Subject: now does a togglemenu if there were no demos started and not connecting to a server... X-Git-Tag: xonotic-v0.1.0preview~5154 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=57033cafed02b98edf3275af469fc67d3493c875;p=xonotic%2Fdarkplaces.git now does a togglemenu if there were no demos started and not connecting to a server and not starting a server git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5011 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index a4debb62..c808ea77 100644 --- a/host.c +++ b/host.c @@ -977,15 +977,22 @@ void Host_Init (void) else Cbuf_InsertText("exec quake.rc\n"); + Cbuf_Execute(); + Cbuf_Execute(); + Cbuf_Execute(); + if (!sv.active && (cls.state == ca_dedicated || COM_CheckParm("-listen"))) Cbuf_InsertText ("startmap_dm\n"); // check for special benchmark mode // COMMANDLINEOPTION: Client: -benchmark runs a timedemo and quits, results of any timedemo can be found in gamedir/benchmark.log (for example id1/benchmark.log) i = COM_CheckParm("-benchmark"); - if (i && i + 1 < com_argc) + if (i && i + 1 < com_argc && !sv.active) Cbuf_InsertText(va("timedemo %s\n", com_argv[i + 1])); + if (!sv.active && !cls.demoplayback && !cls.connect_trying) + Cbuf_InsertText("togglemenu\n"); + Cbuf_Execute(); // We must wait for the log_file cvar to be initialized to start the log