From 397fa894e8daeaea162aa4b91bf2b3437dc15611 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 27 Jul 2015 22:36:23 -0400 Subject: [PATCH] Fix jittering caused by rounding a float value --- Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp b/Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp index 374437cd..fb287d91 100644 --- a/Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp +++ b/Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp @@ -404,7 +404,7 @@ void hsInterp::GetBoundaryKeyFrames(float time, uint32_t numKeys, void *keys, ui { hsAssert(numKeys>1, "Must have more than 1 keyframe"); int k1, k2; - uint16_t frame = (uint16_t)(time * MAX_FRAMES_PER_SEC); + float frame = time * MAX_FRAMES_PER_SEC; // boundary case, past end if (frame > GetKey(numKeys-1, keys, size)->fFrame)