From 1ed1c3e877b296355b8de1a383b427b0825d0169 Mon Sep 17 00:00:00 2001 From: sitton76 <58642183+sitton76@users.noreply.github.com> Date: Thu, 16 May 2024 08:56:14 +0000 Subject: [PATCH] Fixed interpolation issue in z_eff_dust related to post STT cutscene. (#390) --- mm/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c b/mm/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c index d7c9f6a29..bd8533df4 100644 --- a/mm/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c +++ b/mm/src/overlays/actors/ovl_Eff_Dust/z_eff_dust.c @@ -7,6 +7,7 @@ #include "z_eff_dust.h" #include "objects/gameplay_keep/gameplay_keep.h" #include "system_malloc.h" +#include "2s2h/Enhancements/FrameInterpolation/FrameInterpolation.h" #define FLAGS (ACTOR_FLAG_10 | ACTOR_FLAG_20) @@ -290,6 +291,7 @@ void func_80919768(Actor* thisx, PlayState* play2) { gSPSegment(POLY_XLU_DISP++, 0x08, D_80919DB0); for (i = 0; i < ARRAY_COUNT(this->distanceTraveled); i++) { + FrameInterpolation_RecordOpenChild(this, i); if (*distanceTraveled < 1.0f) { aux = 1.0f - SQ(*distanceTraveled); Matrix_Translate(thisx->world.pos.x, thisx->world.pos.y, thisx->world.pos.z, MTXMODE_NEW); @@ -309,6 +311,7 @@ void func_80919768(Actor* thisx, PlayState* play2) { gSPSetGeometryMode(POLY_XLU_DISP++, G_FOG | G_LIGHTING); } + FrameInterpolation_RecordCloseChild(); initialPositions++; distanceTraveled++; }