]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 20 Jun 2010 17:00:08 +0000 (19:00 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10241 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=08fe8ce65e271cc86190ba2c0617d00bc3c2847b

gl_rmain.c

index 6297a23b9de9aa77987c9a824473252569d7f0cc..383008f5d05c65e5062a6ab2461ec5abe90eec27 100644 (file)
@@ -9161,7 +9161,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;
 }