From 3bd6d36a603ab798f32e7c0a4df2e4329cd5d2fd Mon Sep 17 00:00:00 2001 From: sitton76 <58642183+sitton76@users.noreply.github.com> Date: Wed, 18 Jun 2025 13:33:37 -0500 Subject: [PATCH] Tagged Thwomp particles (#227) Co-authored-by: MegaMech --- src/engine/objects/Thwomp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/objects/Thwomp.cpp b/src/engine/objects/Thwomp.cpp index 9cee27c50..9919b43b7 100644 --- a/src/engine/objects/Thwomp.cpp +++ b/src/engine/objects/Thwomp.cpp @@ -4,6 +4,7 @@ #include #include "port/Game.h" +#include "port/interpolation/FrameInterpolation.h" extern "C" { #include "macros.h" @@ -138,8 +139,13 @@ void OThwomp::Tick60fps() { // func_80081210 OThwomp::AddParticles(_objectIndex); } + + if (_idx == 0) { for (var_s4 = 0; var_s4 < gObjectParticle2_SIZE; var_s4++) { + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild("Thwomp_part", (uintptr_t) var_s4); + objectIndex = gObjectParticle2[var_s4]; if (objectIndex == DELETED_OBJECT_ID) { continue; @@ -152,6 +158,9 @@ void OThwomp::Tick60fps() { // func_80081210 continue; } delete_object_wrapper(&gObjectParticle2[var_s4]); + + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); } } }