tag fake item box and whatever func_800696CC is

This commit is contained in:
Sonic Dreamcaster
2025-05-17 03:30:45 -03:00
parent 6090347aeb
commit 06cb8a7c29
4 changed files with 22 additions and 3 deletions
+6
View File
@@ -2,6 +2,7 @@
#include <code_800029B0.h>
#include <libultra/gbi.h>
#include <main.h>
#include "port/interpolation/FrameInterpolation.h"
/**
* @brief Renders the fake item box actor.
@@ -24,6 +25,9 @@ void render_actor_fake_item_box(Camera* camera, struct FakeItemBox* fakeItemBox)
f32 temp_f2_2;
f32 someMultiplier;
// @port: Tag the transform.
FrameInterpolation_RecordOpenChild(TAG_ITEM_ADDR(fakeItemBox), 0);
if (is_within_render_distance(camera->pos, fakeItemBox->pos, camera->rot[1], 2500.0f, gCameraZoom[camera - camera1],
1000000.0f) < 0 &&
CVarGetInteger("gNoCulling", 0) == 0) {
@@ -163,4 +167,6 @@ void render_actor_fake_item_box(Camera* camera, struct FakeItemBox* fakeItemBox)
gSPDisplayList(gDisplayListHead++, D_0D0030F8);
gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
}
// @port Pop the transform id.
FrameInterpolation_RecordCloseChild();
}
+1 -1
View File
@@ -3,7 +3,7 @@
#include <macros.h>
#include "port/interpolation/FrameInterpolation.h"
#define TAG_ITEM_ADDR(x) ((u32) 0x10000000 | (u32) x)
/**
* @brief Renders the item box actor.