froundf -> Quantize

This commit is contained in:
Chris Danford
2004-10-24 17:44:51 +00:00
parent bb0da6a289
commit ce4780559f
8 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ void NoteDisplay::SetActiveFrame( float fNoteBeat, Actor &actorToSet, float fAni
// one tick off in general
const float fFraction = fNoteBeatFraction - 0.25f/fAnimationLengthInBeats;
const float fInterval = 1.f / fAnimationLengthInBeats;
fPercentIntoAnimation += froundf(fFraction,fInterval);
fPercentIntoAnimation += Quantize(fFraction,fInterval);
}
// just in case somehow we're majorly negative with the subtraction