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~230^2~237 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=08fe8ce65e271cc86190ba2c0617d00bc3c2847b;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 --- diff --git a/gl_rmain.c b/gl_rmain.c index f3e6702a..e3bbf8fe 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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; }