]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Host_SaveConfig_f now refuses to save if Host_Frame hasn't completed the first frame...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Mar 2005 18:42:23 +0000 (18:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Mar 2005 18:42:23 +0000 (18:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5088 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 3c698965f6d153e251996ceffd43ccbef8c53e9e..19bd12ad65b7483e91ab5e1bb210a60414f3775c 100644 (file)
--- 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)