disabled loading of csprogs.dat if developer is less than 100
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Jun 2006 04:52:25 +0000 (04:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Jun 2006 04:52:25 +0000 (04:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6424 d7cf8633-e32d-0410-b094-e92efae38249

csprogs.c

index f675847..152b747 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);