move the -1 setting of csqc_* to a better place (argh...)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Jul 2008 11:33:05 +0000 (11:33 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 Jul 2008 11:33:05 +0000 (11:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8410 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c
csprogs.c

index 070982e..7e8d834 100644 (file)
--- 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 ();
index 39dbc6f..0d123a2 100644 (file)
--- 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