From 188b40cb8b13456502791ed91ad28c6e8909ea6c Mon Sep 17 00:00:00 2001 From: Alejandro Javier Asenjo Nitti Date: Sat, 18 May 2024 10:25:01 -0300 Subject: [PATCH] limbCount --- src/engine/fox_std_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/fox_std_lib.c b/src/engine/fox_std_lib.c index c9d49019..2e678ca7 100644 --- a/src/engine/fox_std_lib.c +++ b/src/engine/fox_std_lib.c @@ -256,7 +256,7 @@ void Animation_DrawSkeleton(s32 mode, Limb** skeletonSegment, Vec3f* jointTable, s16 Animation_GetFrameData(Animation* animationSegmemt, s32 frame, Vec3f* frameTable) { Animation* animation = SEGMENTED_TO_VIRTUAL(animationSegmemt); - u16 var4 = animation->limbCount; + u16 limbCount = animation->limbCount; JointKey* key = SEGMENTED_TO_VIRTUAL(animation->jointKey); u16* frameData = SEGMENTED_TO_VIRTUAL(animation->frameData); s32 i; @@ -270,7 +270,7 @@ s16 Animation_GetFrameData(Animation* animationSegmemt, s32 frame, Vec3f* frameT frameTable->z = (s16) temp; frameTable++, key++; - for (i = 1; i <= var4; i++, key++, frameTable++) { + for (i = 1; i <= limbCount; i++, key++, frameTable++) { temp = (frame < key->xLen) ? frameData[key->x + frame] : frameData[key->x]; frameTable->x = temp * 360.0f / 65536.0f; temp = (frame < key->yLen) ? frameData[key->y + frame] : frameData[key->y]; @@ -278,7 +278,7 @@ s16 Animation_GetFrameData(Animation* animationSegmemt, s32 frame, Vec3f* frameT temp = (frame < key->zLen) ? frameData[key->z + frame] : frameData[key->z]; frameTable->z = temp * 360.0f / 65536.0f; } - return var4 + 1; + return limbCount + 1; } s32 Animation_GetFrameCount(Animation* animationSegment) {