]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
csqc_progname: make reset optional
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 9 Jan 2016 05:56:53 +0000 (16:56 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 9 Jan 2016 05:56:53 +0000 (16:56 +1100)
qcsrc/client/main.qc

index 7a7b6c239e6fa8820ba2a2670759450e7aaff688..c251df0daeb1c494e0e9cd074d2bad1858b144aa 100644 (file)
@@ -128,10 +128,12 @@ void CSQC_Init()
        draw_currentSkin = strzone(strcat("gfx/menu/", cvar_string("menu_skin")));
 }
 
+bool autocvar_debug_csprogs = false;
+
 // CSQC_Shutdown : Called every time the CSQC code is shutdown (changing maps, quitting, etc)
 void Shutdown()
 {
-       if (cvar_string("csqc_progname") == "csprogs-" WATERMARK ".dat")
+       if (autocvar_debug_csprogs && cvar_string("csqc_progname") == "csprogs-" WATERMARK ".dat")
        {
                // Reset csqc_progname changes here to keep listen servers working
                // The engine should do this, but doesn't