summaryrefslogtreecommitdiff
path: root/src/engine/objects/Bat.cpp
diff options
context:
space:
mode:
authorsitton76 <58642183+sitton76@users.noreply.github.com>2025-05-20 17:03:38 -0500
committersitton76 <58642183+sitton76@users.noreply.github.com>2025-05-20 17:03:38 -0500
commit02d6c6fc99301ec282189285c44101a78804a063 (patch)
treeb56a2afa7f0a3cc614f0c0ff14528c79bca68b67 /src/engine/objects/Bat.cpp
parent46abc4f6fccfe8fd4c6c9c9b67e8ddcf0385f988 (diff)
Tagged Bat, Boos, and TrashBin(Banshee Boardwalk objects)
Diffstat (limited to 'src/engine/objects/Bat.cpp')
-rw-r--r--src/engine/objects/Bat.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/objects/Bat.cpp b/src/engine/objects/Bat.cpp
index 764476064..2056a17f7 100644
--- a/src/engine/objects/Bat.cpp
+++ b/src/engine/objects/Bat.cpp
@@ -1,6 +1,7 @@
#include "Bat.h"
#include "World.h"
#include "CoreMath.h"
+#include "port/interpolation/FrameInterpolation.h"
extern "C" {
#include "render_objects.h"
@@ -113,6 +114,8 @@ void OBat::Draw(s32 cameraId) {
D_80183E80[2] = gObjectList[objectIndex].orientation[2];
if ((D_8018CFB0 != 0) || (D_8018CFC8 != 0)) {
for (var_s2 = 0; var_s2 < 40; var_s2++) {
+ // @port: Tag the transform.
+ FrameInterpolation_RecordOpenChild("Bat set 1", var_s2);
objectIndex = gObjectParticle2[var_s2];
if (objectIndex == -1) {
continue;
@@ -124,10 +127,14 @@ void OBat::Draw(s32 cameraId) {
func_800431B0(gObjectList[objectIndex].pos, D_80183E80, gObjectList[objectIndex].sizeScaling,
(Vtx*)D_0D0062B0);
}
+ // @port Pop the transform id.
+ FrameInterpolation_RecordCloseChild();
}
}
if ((D_8018CFE8 != 0) || (D_8018D000 != 0)) {
for (var_s2 = 0; var_s2 < 30; var_s2++) {
+ // @port: Tag the transform.
+ FrameInterpolation_RecordOpenChild("Bat set 2", var_s2);
objectIndex = gObjectParticle3[var_s2];
if (objectIndex == -1) {
continue;
@@ -139,6 +146,8 @@ void OBat::Draw(s32 cameraId) {
func_800431B0(gObjectList[objectIndex].pos, D_80183E80, gObjectList[objectIndex].sizeScaling,
(Vtx*)D_0D0062B0);
}
+ // @port Pop the transform id.
+ FrameInterpolation_RecordCloseChild();
}
}
gSPTexture(gDisplayListHead++, 0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF);