From c559b98eb6e985475fbe589eb412fc8c44b9e208 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 15 Mar 2005 18:42:23 +0000 Subject: [PATCH] Host_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame yet (this means if it crashes during the first frame it won't save a config) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5088 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host.c b/host.c index 3c698965..19bd12ad 100644 --- a/host.c +++ b/host.c @@ -278,7 +278,8 @@ void Host_SaveConfig_f(void) // dedicated servers initialize the host but don't parse and set the // config.cfg cvars - if (host_initialized && cls.state != ca_dedicated) + // LordHavoc: save a config only after Host_Frame finished the first frame + if (host_initialized && host_loopactive && cls.state != ca_dedicated) { f = FS_Open ("config.cfg", "wb", false, false); if (!f) -- 2.39.2