summaryrefslogtreecommitdiff
path: root/src/update_objects.c
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2024-08-23 01:53:05 +0200
committerGitHub <noreply@github.com>2024-08-22 17:53:05 -0600
commit3781ce2830a143df855003b65fe069d2e26215d9 (patch)
tree61ce31de6afb86fdb1722ceba15c2fa68b70d3c8 /src/update_objects.c
parent80549609488498423c93500227e5b58dfca89731 (diff)
fix animation (#60)
* fix animation * Update update_objects.c
Diffstat (limited to 'src/update_objects.c')
-rw-r--r--src/update_objects.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/update_objects.c b/src/update_objects.c
index 27e9083b6..03d085329 100644
--- a/src/update_objects.c
+++ b/src/update_objects.c
@@ -6818,16 +6818,16 @@ void update_crabs(void) {
// Stack issue caused by the `test` variable, but removing it causes much, much larger differences
//! @todo Fix flag animations
void func_80082F1C(s32 objectIndex, s32 arg1) {
- // YVFlagPoleSpawn *test;
- // gObjectList[objectIndex].model = (Gfx *) d_course_yoshi_valley_unk5;
- // gObjectList[objectIndex].vertex = (Vtx *) d_course_yoshi_valley_unk4;
- // gObjectList[objectIndex].sizeScaling = 0.027f;
- // //if (test->rot && test->rot) {}
- // test = &D_800E5DF4[arg1];
- // func_80072488(objectIndex);
- // set_obj_origin_pos(objectIndex, test->pos[0] * xOrientation, test->pos[1], test->pos[2]);
- // set_obj_origin_offset(objectIndex, 0.0f, 0.0f, 0.0f);
- // set_obj_direction_angle(objectIndex, 0U, test->rot, 0U);
+ YVFlagPoleSpawn *test;
+ gObjectList[objectIndex].model = (Gfx *) d_course_yoshi_valley_unk5;
+ gObjectList[objectIndex].vertex = (Vtx *) d_course_yoshi_valley_unk4;
+ gObjectList[objectIndex].sizeScaling = 0.027f;
+ //if (test->rot && test->rot) {}
+ test = &D_800E5DF4[arg1];
+ func_80072488(objectIndex);
+ set_obj_origin_pos(objectIndex, test->pos[0] * xOrientation, test->pos[1], test->pos[2]);
+ set_obj_origin_offset(objectIndex, 0.0f, 0.0f, 0.0f);
+ set_obj_direction_angle(objectIndex, 0U, test->rot, 0U);
}
#else
GLOBAL_ASM("asm/non_matchings/update_objects/func_80082F1C.s")