]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
fix a bug in userwavefuncs, they now work 100% fine in div0-stable branch (without...
[xonotic/darkplaces.git] / gl_rmain.c
index f3e6702a525f339464c5c7082607b21609d8ecd2..e3bbf8febf6201608624e6ae9e3c3857b39a5af2 100644 (file)
@@ -9114,7 +9114,7 @@ static qboolean R_TestQ3WaveFunc(q3wavefunc_t func, const float *parms)
        if(parms[0] == 0 && parms[1] == 0)
                return false;
        if(func >> Q3WAVEFUNC_USER_SHIFT) // assumes rsurface to be set!
-               if(rsurface.userwavefunc_param[bound(0, (func >> Q3WAVEFUNC_USER_SHIFT) - 1, Q3WAVEFUNC_USER_COUNT)] == 0);
+               if(rsurface.userwavefunc_param[bound(0, (func >> Q3WAVEFUNC_USER_SHIFT) - 1, Q3WAVEFUNC_USER_COUNT)] == 0)
                        return false;
        return true;
 }