From: divverent Date: Tue, 15 Jul 2008 11:33:05 +0000 (+0000) Subject: move the -1 setting of csqc_* to a better place (argh...) X-Git-Tag: xonotic-v0.1.0preview~2171 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1fc6de3837cc4e577f9e67baa2bd2e397233d30;p=xonotic%2Fdarkplaces.git move the -1 setting of csqc_* to a better place (argh...) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8410 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 070982e5..7e8d834b 100644 --- a/cl_main.c +++ b/cl_main.c @@ -304,6 +304,8 @@ void CL_Disconnect(void) Con_DPrintf("CL_Disconnect\n"); + Cvar_SetValueQuick(&csqc_progcrc, -1); + Cvar_SetValueQuick(&csqc_progsize, -1); CL_VM_ShutDown(); // stop sounds (especially looping!) S_StopAllSounds (); diff --git a/csprogs.c b/csprogs.c index 39dbc6ff..0d123a2e 100644 --- a/csprogs.c +++ b/csprogs.c @@ -1,4 +1,4 @@ -#include "quakedef.h" +###include "quakedef.h" #include "progsvm.h" #include "clprogdefs.h" #include "csprogs.h" @@ -792,8 +792,8 @@ void CL_VM_Init (void) void CL_VM_ShutDown (void) { Cmd_ClearCsqcFuncs(); - Cvar_SetValueQuick(&csqc_progcrc, -1); - Cvar_SetValueQuick(&csqc_progsize, -1); + //Cvar_SetValueQuick(&csqc_progcrc, -1); + //Cvar_SetValueQuick(&csqc_progsize, -1); if(!cl.csqc_loaded) return; CSQC_BEGIN