]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
disabled loading of csprogs.dat if developer is less than 100
[xonotic/darkplaces.git] / csprogs.c
index f6758470c34f3fc3738a0e85c573f2fe5a1d3664..152b747fb3b5cf99b6ba58235a06135635e90e35 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -512,11 +512,18 @@ void CL_VM_Init (void)
                return;
        }
        else
+       {
+               if (developer.integer < 100)
+               {
+                       Con_DPrintf("CL_VM_Init: CSQC is broken, and is not being loaded because developer is less than 100.\n");
+                       return;
+               }
                if(!sv.active && !csqc_progcrc.integer) //[515]: because cheaters may use csqc while server didn't allowed it !
                {
                        Con_Printf("CL_VM_Init: server didn't sent CSQC crc, so CSQC is disabled\n");
                        return;
                }
+       }
 
        PRVM_Begin;
        PRVM_InitProg(PRVM_CLIENTPROG);