From: TimePath <andrew.hardaker1995@gmail.com>
Date: Sat, 9 Jan 2016 05:56:53 +0000 (+1100)
Subject: csqc_progname: make reset optional
X-Git-Tag: xonotic-v0.8.2~1258
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=674d5f3592ef37cae7b230da8e76616c33f1814f;p=xonotic%2Fxonotic-data.pk3dir.git

csqc_progname: make reset optional
---

diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc
index 7a7b6c239..c251df0da 100644
--- a/qcsrc/client/main.qc
+++ b/qcsrc/client/main.qc
@@ -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