]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 070982e549d97b9cf1f58e8a1131007e94e31751..7e8d834bd573d177b02fc86211ee79396a3d9e9a 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -304,6 +304,8 @@ void CL_Disconnect(void)
 
        Con_DPrintf("CL_Disconnect\n");
 
 
        Con_DPrintf("CL_Disconnect\n");
 
+    Cvar_SetValueQuick(&csqc_progcrc, -1);
+       Cvar_SetValueQuick(&csqc_progsize, -1);
        CL_VM_ShutDown();
 // stop sounds (especially looping!)
        S_StopAllSounds ();
        CL_VM_ShutDown();
 // stop sounds (especially looping!)
        S_StopAllSounds ();
index 39dbc6ff664cd1adc5c4bf54dd76141cd107a4f6..0d123a2e165017ea68879b04e80562f1305ed3b4 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"
 #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();
 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
        if(!cl.csqc_loaded)
                return;
        CSQC_BEGIN