diff options
| author | MegaMech <inkstudios1@hotmail.com> | 2025-05-19 16:42:11 -0600 |
|---|---|---|
| committer | MegaMech <inkstudios1@hotmail.com> | 2025-05-19 16:42:11 -0600 |
| commit | 1eba8ebc17ba71435f8d91b876c35d05f5735de0 (patch) | |
| tree | cb650f8c2365f982c2162446d069e3b0a0d9b49d /src/render_objects.c | |
| parent | c12225592a3aecc5dd3b059ebe222ed97d829cef (diff) | |
Fix interpolation camera bug
Diffstat (limited to 'src/render_objects.c')
| -rw-r--r-- | src/render_objects.c | 7 |
1 files changed, 4 insertions, 3 deletions
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(); } } } |
