From: divverent Date: Sun, 20 Jun 2010 17:01:19 +0000 (+0000) Subject: fix a bug in userwavefuncs, they now work 100% fine in div0-stable branch (without... X-Git-Tag: xonotic-v0.1.0preview~415 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8170bc8cb3e7dd0bff36840bd4c16b5dd2e5e616;p=xonotic%2Fdarkplaces.git fix a bug in userwavefuncs, they now work 100% fine in div0-stable branch (without DX vertex formats) and work fine here for animated models only git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10241 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=08fe8ce65e271cc86190ba2c0617d00bc3c2847b --- diff --git a/gl_rmain.c b/gl_rmain.c index 6297a23b..383008f5 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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; }