diff options
| author | sitton76 <58642183+sitton76@users.noreply.github.com> | 2025-06-18 13:33:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-18 12:33:37 -0600 |
| commit | 3bd6d36a603ab798f32e7c0a4df2e4329cd5d2fd (patch) | |
| tree | ff86b61b2ad49471c5c0f7ce453b9d0c9f8624cf /src/engine/objects/Thwomp.cpp | |
| parent | 5011f932c2349d75e609612af4e5e8395c1f75eb (diff) | |
Tagged Thwomp particles (#227)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/engine/objects/Thwomp.cpp')
| -rw-r--r-- | src/engine/objects/Thwomp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <vector> #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(); } } } |
