fix wrap(float) not working; caused receptors to not flash before beat 0

This commit is contained in:
Glenn Maynard
2004-01-08 09:11:49 +00:00
parent 436300861c
commit 048c4c8e47
+1 -1
View File
@@ -64,7 +64,7 @@ inline void wrap( int &x, int n)
inline void wrap( float &x, float n) inline void wrap( float &x, float n)
{ {
if (x<0) if (x<0)
x += ((-x/n)+1)*n; x += truncf(((-x/n)+1))*n;
x = fmodf(x,n); x = fmodf(x,n);
} }