From 57033cafed02b98edf3275af469fc67d3493c875 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 7 Feb 2005 17:46:55 +0000 Subject: [PATCH] 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 --- host.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.2