From 78d35a1efbdf8756fab5144493caf8368969d155 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 23 Feb 2004 00:10:32 +0000 Subject: [PATCH] fix glitches if the time is set far ahead during gameplay --- stepmania/src/Actor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 20679c9940..162cad7136 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -335,12 +335,12 @@ void Actor::Update( float fDeltaTime ) break; case spin: m_current.rotation += fDeltaTime*m_vEffectMagnitude; - if( m_current.rotation.x > 360 ) m_current.rotation.x -= 360; - if( m_current.rotation.y > 360 ) m_current.rotation.y -= 360; - if( m_current.rotation.z > 360 ) m_current.rotation.z -= 360; - if( m_current.rotation.x < -360 ) m_current.rotation.x += 360; - if( m_current.rotation.y < -360 ) m_current.rotation.y += 360; - if( m_current.rotation.z < -360 ) m_current.rotation.z += 360; + while( m_current.rotation.x > 360 ) m_current.rotation.x -= 360; + while( m_current.rotation.y > 360 ) m_current.rotation.y -= 360; + while( m_current.rotation.z > 360 ) m_current.rotation.z -= 360; + while( m_current.rotation.x < -360 ) m_current.rotation.x += 360; + while( m_current.rotation.y < -360 ) m_current.rotation.y += 360; + while( m_current.rotation.z < -360 ) m_current.rotation.z += 360; break; case vibrate: break;