From: havoc Date: Tue, 15 Mar 2005 18:42:23 +0000 (+0000) Subject: Host_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame... X-Git-Tag: xonotic-v0.1.0preview~5080 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c559b98eb6e985475fbe589eb412fc8c44b9e208;p=xonotic%2Fdarkplaces.git 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 --- 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)