From 1eba8ebc17ba71435f8d91b876c35d05f5735de0 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Mon, 19 May 2025 16:42:11 -0600 Subject: Fix interpolation camera bug --- src/render_objects.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/render_objects.c') diff --git a/src/render_objects.c b/src/render_objects.c index b2de13f7c..9a8c7400a 100644 --- a/src/render_objects.c +++ b/src/render_objects.c @@ -3934,15 +3934,15 @@ void func_80055EF4(s32 objectIndex, UNUSED s32 arg1) { void render_object_neon(s32 cameraId) { Camera* camera; - s32 var_s2; s32 objectIndex; Object* object; camera = &camera1[cameraId]; - for (var_s2 = 0; var_s2 < 10; var_s2++) { - objectIndex = indexObjectList1[var_s2]; + for (size_t i = 0; i < 10; i++) { + objectIndex = indexObjectList1[i]; if (D_8018E838[cameraId] == 0) { object = &gObjectList[objectIndex]; + FrameInterpolation_RecordOpenChild(object, TAG_OBJECT((objectIndex << 8) + i)); if ((object->state >= 2) && (is_obj_index_flag_status_inactive(objectIndex, 0x00080000) != 0) && (is_object_visible_on_camera(objectIndex, camera, 0x2AABU) != 0)) { Vtx* vtx = (Vtx*) LOAD_ASSET(common_vtx_hedgehog); @@ -3950,6 +3950,7 @@ void render_object_neon(s32 cameraId) { draw_2d_texture_at(object->pos, object->orientation, object->sizeScaling, (u8*) object->activeTLUT, object->activeTexture, vtx, 0x00000040, 0x00000040, 0x00000040, 0x00000020); } + FrameInterpolation_RecordCloseChild(); } } } -- cgit v1.2.3