From 217f86e5fa38c61488650fe0fce3d2a6f0ecf7fc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 18 Nov 2003 00:50:06 +0000 Subject: [PATCH] fix Dizzy tweening --- stepmania/src/ArrowEffects.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ArrowEffects.cpp b/stepmania/src/ArrowEffects.cpp index a37a77bc2d..5f29d7ec0a 100644 --- a/stepmania/src/ArrowEffects.cpp +++ b/stepmania/src/ArrowEffects.cpp @@ -218,11 +218,12 @@ float ArrowGetRotation( PlayerNumber pn, float fNoteBeat ) { if( GAMESTATE->m_CurrentPlayerOptions[pn].m_fEffects[PlayerOptions::EFFECT_DIZZY] > 0 ) { - float fSongBeat = GAMESTATE->m_fSongBeat; + const float fSongBeat = GAMESTATE->m_fSongBeat; float fDizzyRotation = fNoteBeat - fSongBeat; + fDizzyRotation *= GAMESTATE->m_CurrentPlayerOptions[pn].m_fEffects[PlayerOptions::EFFECT_DIZZY]; fDizzyRotation = fmodf( fDizzyRotation, 2*PI ); fDizzyRotation *= 180/PI; - return fDizzyRotation * GAMESTATE->m_CurrentPlayerOptions[pn].m_fEffects[PlayerOptions::EFFECT_DIZZY]; + return fDizzyRotation; } else return 0;