]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disabled saveconfig when doing -benchmark
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Feb 2007 16:42:46 +0000 (16:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Feb 2007 16:42:46 +0000 (16:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6830 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 6ec645a44629ee571e196a961fd3776fb3c876cf..db6c3db4dc25591a87d32b46a8471f6f7495ec70 100644 (file)
--- a/host.c
+++ b/host.c
@@ -267,7 +267,7 @@ void Host_SaveConfig_f(void)
 // dedicated servers initialize the host but don't parse and set the
 // config.cfg cvars
        // LordHavoc: don't save a config if it crashed in startup
-       if (host_framecount >= 3 && cls.state != ca_dedicated)
+       if (host_framecount >= 3 && cls.state != ca_dedicated && !COM_CheckParm("-benchmark"))
        {
                f = FS_Open ("config.cfg", "wb", false, false);
                if (!f)