]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
disabled saveconfig when doing -benchmark
[xonotic/darkplaces.git] / 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)