From 3654470a050ee5bb4b5f361bad8606810a5af5e1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 17 Feb 2006 05:57:00 +0000 Subject: [PATCH] Fix notes placed 1/64th above the beat are the wrong color in vivid. --- stepmania/src/NoteDisplay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index e6ea4ff018..5486c41a33 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -301,10 +301,9 @@ void NoteDisplay::SetActiveFrame( float fNoteBeat, Actor &actorToSet, float fAni if( bVivid ) { float fNoteBeatFraction = fmodf( fNoteBeat, 1.0f ); - fNoteBeatFraction -= 1/(fAnimationLengthInBeats*4); const float fInterval = 1.f / fAnimationLengthInBeats; - fPercentIntoAnimation += Quantize( fNoteBeatFraction, fInterval ); + fPercentIntoAnimation += QuantizeDown( fNoteBeatFraction, fInterval ); // just in case somehow we're majorly negative with the subtraction wrap( fPercentIntoAnimation, 1.f );