]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a bug in userwavefuncs, they now work 100% fine in div0-stable branch (without...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Jun 2010 17:01:19 +0000 (17:01 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Jun 2010 17:01:19 +0000 (17:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10241 d7cf8633-e32d-0410-b094-e92efae38249

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;
 }