From d844156076d805d48f9c74318d6a675d901529ee Mon Sep 17 00:00:00 2001 From: Jdog Date: Tue, 18 Aug 2020 15:51:58 -0700 Subject: [PATCH] Rename func_802CE1C0 to SetNpcAnimationSpeed --- include/common_structs.h | 2 +- src/code_f2470_len_27f0.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/common_structs.h b/include/common_structs.h index 42eb93da85..a56d5e37ca 100644 --- a/include/common_structs.h +++ b/include/common_structs.h @@ -62,7 +62,7 @@ typedef struct Npc { /* 0x024 */ char unk_24[4]; /* 0x028 */ u32 currentAnim; /* 0x02C */ char unk_2C[4]; - /* 0x030 */ f32 unk_30; + /* 0x030 */ f32 animationSpeed; /* 0x034 */ char unk_34[4]; /* 0x038 */ struct Vec3f pos; /* 0x044 */ struct Vec3f rotation; diff --git a/src/code_f2470_len_27f0.c b/src/code_f2470_len_27f0.c index fe95dd047c..68c1fa7b40 100644 --- a/src/code_f2470_len_27f0.c +++ b/src/code_f2470_len_27f0.c @@ -127,14 +127,14 @@ ApiStatus GetNpcAnimation(ScriptInstance* script, s32 isInitialCall) { } // TODO: Figure out meaning of float value in Npc struct that this function is setting -ApiStatus func_802CE1C0(ScriptInstance* script, s32 isInitialCall) { +ApiStatus SetNpcAnimationSpeed(ScriptInstance* script, s32 isInitialCall) { Bytecode* ptrReadPos = script->ptrReadPos; NpcId npcID = get_variable(script, *ptrReadPos++); - f32 value1 = get_float_variable(script, *ptrReadPos++); + f32 animationSpeed = get_float_variable(script, *ptrReadPos++); Npc* npcPtr = resolve_npc(script, npcID); if (npcPtr != NULL) { - npcPtr->unk_30 = value1; + npcPtr->animationSpeed = animationSpeed; return ApiStatus_DONE2; // Doesn't match if omitted } return ApiStatus_DONE2;