summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegaMech <inkstudios1@hotmail.com>2025-05-17 13:02:36 -0600
committerMegaMech <inkstudios1@hotmail.com>2025-05-17 13:02:36 -0600
commitb57f562c8aa7510c933b8bfe5a3510f2e0b1f513 (patch)
tree76036c6e812c87cedf498add42a74af666a82e49
parentaf63558bac2647729af472f318958828289e8b17 (diff)
Fixes
-rw-r--r--src/engine/objects/Lakitu.cpp6
-rw-r--r--src/math_util_2.c1
-rw-r--r--src/math_util_2.h3
-rw-r--r--src/port/interpolation/FrameInterpolation.cpp2
-rw-r--r--src/port/interpolation/FrameInterpolation.h1
-rw-r--r--src/racing/actors.c5
6 files changed, 11 insertions, 7 deletions
diff --git a/src/engine/objects/Lakitu.cpp b/src/engine/objects/Lakitu.cpp
index 12ca2d7db..92f164e95 100644
--- a/src/engine/objects/Lakitu.cpp
+++ b/src/engine/objects/Lakitu.cpp
@@ -2,6 +2,7 @@
#include <libultra/gbi.h>
#include "Lakitu.h"
#include <vector>
+#include "port/interpolation/FrameInterpolation.h"
#include "port/Game.h"
@@ -10,6 +11,7 @@ extern "C" {
#include "main.h"
#include "actors.h"
#include "math_util.h"
+#include "math_util_2.h"
#include "sounds.h"
#include "update_objects.h"
#include "render_player.h"
@@ -21,7 +23,6 @@ extern "C" {
#include "code_80057C60.h"
#include "defines.h"
#include "code_80005FD0.h"
-#include "math_util_2.h"
#include "collision.h"
#include "assets/bowsers_castle_data.h"
#include "ceremony_and_credits.h"
@@ -95,6 +96,8 @@ void OLakitu::Draw(s32 cameraId) {
s32 objectIndex;
Object* object;
+ FrameInterpolation_RecordOpenChild("Lakitu",(u32) 3939848893);
+
objectIndex = gIndexLakituList[cameraId];
camera = &camera1[cameraId];
if (is_obj_flag_status_active(objectIndex, 0x00000010) != 0) {
@@ -126,6 +129,7 @@ void OLakitu::Draw(s32 cameraId) {
}
}
}
+ FrameInterpolation_RecordCloseChild();
}
void OLakitu::func_80079114(s32 objectIndex, s32 playerId, s32 arg2) {
diff --git a/src/math_util_2.c b/src/math_util_2.c
index 067b34b21..091bf9215 100644
--- a/src/math_util_2.c
+++ b/src/math_util_2.c
@@ -603,7 +603,6 @@ void func_80041D24(void) {
}
void guOrtho(Mtx*, f32, f32, f32, f32, f32, f32, f32); /* extern */
-extern s8 D_801658FE;
void func_80041D34(void) {
guOrtho(&D_80183D60, 0.0f, 320.0f, 240.0f, 0.0f, -1.0f, 1.0f, 1.0f);
diff --git a/src/math_util_2.h b/src/math_util_2.h
index c616a1440..604e28c02 100644
--- a/src/math_util_2.h
+++ b/src/math_util_2.h
@@ -84,7 +84,4 @@ void rsp_set_matrix_transformation_inverted_x_y_orientation(Vec3f, Vec3su, f32);
void rsp_set_matrix_transl_rot_scale(Vec3f, Vec3f, f32);
void rsp_set_matrix_gObjectList(s32);
-/* This is where I'd put my static data, if I had any */
-extern s8 D_801658FE;
-
#endif // MATH_UTIL_2_H
diff --git a/src/port/interpolation/FrameInterpolation.cpp b/src/port/interpolation/FrameInterpolation.cpp
index 4a6725cbe..9df591f0c 100644
--- a/src/port/interpolation/FrameInterpolation.cpp
+++ b/src/port/interpolation/FrameInterpolation.cpp
@@ -6,7 +6,7 @@
#include <math.h>
#include "port/Engine.h"
#include <math_util.h>
-#include <math_util_2.h>
+#include "math_util_2.h"
#include "FrameInterpolation.h"
#include "matrix.h"
diff --git a/src/port/interpolation/FrameInterpolation.h b/src/port/interpolation/FrameInterpolation.h
index 016dc691a..d2a9a5fe3 100644
--- a/src/port/interpolation/FrameInterpolation.h
+++ b/src/port/interpolation/FrameInterpolation.h
@@ -4,7 +4,6 @@
// #include "sf64math.h"
#include <libultraship.h>
#include <common_structs.h>
-#include <math_util_2.h>
#ifdef __cplusplus
diff --git a/src/racing/actors.c b/src/racing/actors.c
index ba9ae9307..266bd8d4b 100644
--- a/src/racing/actors.c
+++ b/src/racing/actors.c
@@ -2444,11 +2444,15 @@ void render_course_actors(struct UnkStruct_800DC5EC* arg0) {
if (actor->flags == 0) {
continue;
}
+
+ FrameInterpolation_RecordOpenChild(actor, i);
+
switch (actor->type) {
default: // Draw custom actor
CM_DrawActors(D_800DC5EC->camera, actor);
break;
case ACTOR_TREE_MARIO_RACEWAY:
+
render_actor_tree_mario_raceway(camera, sBillBoardMtx, actor);
break;
case ACTOR_TREE_YOSHI_VALLEY:
@@ -2548,6 +2552,7 @@ void render_course_actors(struct UnkStruct_800DC5EC* arg0) {
render_actor_yoshi_egg(camera, sBillBoardMtx, (struct YoshiValleyEgg*) actor, pathCounter);
break;
}
+ FrameInterpolation_RecordCloseChild(actor, i);
}
if (GetCourse() == GetMooMooFarm()) {
render_cows(camera, sBillBoardMtx);