From 674d5f3592ef37cae7b230da8e76616c33f1814f Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 9 Jan 2016 16:56:53 +1100 Subject: [PATCH] csqc_progname: make reset optional --- qcsrc/client/main.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2