move unnecessary fmodf call

This commit is contained in:
Glenn Maynard
2005-03-12 05:02:22 +00:00
parent 0d7c61faae
commit 20ea0bece9
+1 -1
View File
@@ -365,12 +365,12 @@ void NoteDisplay::SetActiveFrame( float fNoteBeat, Actor &actorToSet, float fAni
float fSongBeat = GAMESTATE->m_fSongBeat;
float fPercentIntoAnimation = fmodf(fSongBeat,fAnimationLengthInBeats) / fAnimationLengthInBeats;
float fNoteBeatFraction = fmodf( fNoteBeat, 1.0f );
if( bVivid )
{
// changed to deal with the minor complaint that the color cycling is
// one tick off in general
const float fNoteBeatFraction = fmodf( fNoteBeat, 1.0f );
const float fFraction = fNoteBeatFraction - 0.25f/fAnimationLengthInBeats;
const float fInterval = 1.f / fAnimationLengthInBeats;
fPercentIntoAnimation += Quantize(fFraction,fInterval);