From 8baf3a63217e3a94c3a3875f2d536e080a1679c9 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 26 Feb 2017 13:02:24 +0100 Subject: [PATCH] why Macro? --- SilentPatchSA/SilentPatchSA.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index cde4300..4631aad 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -932,9 +932,11 @@ RwBool GTARtAnimInterpolatorSetCurrentAnim(RtAnimInterpolator* animI, RtAnimAnim animI->keyFrameAddCB = info->keyFrameAddCB; for ( RwInt32 i = 0; i < animI->numNodes; ++i ) - RtAnimKeyFrameInterpolateMacro( animI, rtANIMGETINTERPFRAME( animI, i ), + { + RtAnimKeyFrameInterpolate( animI, rtANIMGETINTERPFRAME( animI, i ), (RwChar*)anim->pFrames + i * animI->currentAnimKeyFrameSize, (RwChar*)anim->pFrames + ( i + animI->numNodes) * animI->currentAnimKeyFrameSize, 0.0f ); + } animI->pNextFrame = (RwChar*)anim->pFrames + 2 * animI->currentAnimKeyFrameSize * animI->numNodes;