From 048c4c8e47d05fb114a1f9cee374fb1c800677a3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 8 Jan 2004 09:11:49 +0000 Subject: [PATCH] fix wrap(float) not working; caused receptors to not flash before beat 0 --- stepmania/src/RageUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index d09171f638..148c2f9bff 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -64,7 +64,7 @@ inline void wrap( int &x, int n) inline void wrap( float &x, float n) { if (x<0) - x += ((-x/n)+1)*n; + x += truncf(((-x/n)+1))*n; x = fmodf(x,n); }