Changed the color cycling's rounding so that it matches up with DDR (and presumably everything else which truncates the number rather than actually rounding).
This commit is contained in:
@@ -301,7 +301,9 @@ void NoteDisplay::SetActiveFrame( float fNoteBeat, Actor &actorToSet, float fAni
|
||||
|
||||
int iFrameNo = (int)(fPrecentIntoAnimation*iNumFrames);
|
||||
if( bVivid )
|
||||
iFrameNo += (int)( froundf(fNoteBeatFraction,1.f/fAnimationLengthInBeats)*iNumFrames );
|
||||
// changed to deal with the minor complaint that the color cycling is
|
||||
// one tick off in general
|
||||
iFrameNo += (int)( froundf((fNoteBeatFraction + 0.5f/fAnimationLengthInBeats),1.f/fAnimationLengthInBeats)*iNumFrames );
|
||||
|
||||
iFrameNo += iNumFrames;
|
||||
iFrameNo %= iNumFrames;
|
||||
|
||||
Reference in New Issue
Block a user