]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
-Increased MAX_LIGHTSTYLES to 256.
[xonotic/darkplaces.git] / svvm_cmds.c
index d77c1f0057d0a4e1b95e1cd7423662590b2ff078..9b1492d1899d979dd420ce0eae8ac58dbd3a54c4 100644 (file)
@@ -862,7 +862,7 @@ void PF_lightstyle (void)
        style = PRVM_G_FLOAT(OFS_PARM0);
        val = PRVM_G_STRING(OFS_PARM1);
 
-       if( (unsigned) style >= 64 ) {
+       if( (unsigned) style >= MAX_LIGHTSTYLES ) {
                PRVM_ERROR( "PF_lightstyle: style: %i >= 64", style );
        }