diff options
| author | sitton76 <58642183+sitton76@users.noreply.github.com> | 2025-05-20 22:21:38 -0500 |
|---|---|---|
| committer | sitton76 <58642183+sitton76@users.noreply.github.com> | 2025-05-20 22:21:38 -0500 |
| commit | 6f61776b910cea30f99edf6d087263fd4ca9a991 (patch) | |
| tree | 71cb2b3adde03d8b5248799ab0f4ec9598a06d52 | |
| parent | fd711e7c695144c473d4f2abb821cddb619544ff (diff) | |
Changed how shell flames are interpolated.
| -rw-r--r-- | src/render_objects.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/render_objects.c b/src/render_objects.c index 3211d0f9b..9492916f7 100644 --- a/src/render_objects.c +++ b/src/render_objects.c @@ -3930,19 +3930,21 @@ void func_8005477C(s32 objectIndex, u8 arg1, Vec3f arg2) { void render_object_smoke_particles(s32 cameraId) { UNUSED s32 stackPadding[2]; Camera* sp54; - s32 var_s0; + s32 i; s32 objectIndex; Object* object; sp54 = &camera1[cameraId]; - FrameInterpolation_RecordOpenChild("SmokeParticles", TAG_OBJECT(sp54)); + gSPDisplayList(gDisplayListHead++, D_0D007AE0); load_texture_block_i8_nomirror(common_texture_particle_smoke[D_80165598], 32, 32); func_8004B72C(255, 255, 255, 255, 255, 255, 255); D_80183E80[0] = 0; D_80183E80[2] = 0x8000; - for (var_s0 = 0; var_s0 < gObjectParticle4_SIZE; var_s0++) { - objectIndex = gObjectParticle4[var_s0]; + for (i = 0; i < gObjectParticle4_SIZE; i++) { + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild("SmokeParticles", (uintptr_t) i); + objectIndex = gObjectParticle4[i]; if (objectIndex != NULL_OBJECT_ID) { object = &gObjectList[objectIndex]; if (object->state >= 2) { @@ -3956,8 +3958,10 @@ void render_object_smoke_particles(s32 cameraId) { } } } + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); } - FrameInterpolation_RecordCloseChild(); + } UNUSED void func_800557AC() { |
