summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-06-07 18:03:19 -0600
committerGitHub <noreply@github.com>2025-06-07 18:03:19 -0600
commit47e4dd58c0e590f3768eeb2bbcf5c9577da7cd95 (patch)
treefc5090f18a61cd1b272facb55cc9e615e982a878
parentf2708a137c081a2adbb549e19badbde3c869a0f9 (diff)
Update render.inc.c
-rw-r--r--src/actors/fake_item_box/render.inc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/actors/fake_item_box/render.inc.c b/src/actors/fake_item_box/render.inc.c
index 3292b64e2..34cbfd105 100644
--- a/src/actors/fake_item_box/render.inc.c
+++ b/src/actors/fake_item_box/render.inc.c
@@ -65,6 +65,13 @@ void render_actor_fake_item_box(Camera* camera, struct FakeItemBox* fakeItemBox)
gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING);
gDPSetCombineMode(gDisplayListHead++, G_CC_MODULATEIA, G_CC_MODULATEIA);
+
+ /*
+ * In the original game, the question mark texture would become corrupted. Thus, this code
+ * makes it disappear to hide the issue. Since the texture no longer becomes corrupted, this
+ * fix can be removed.
+ */
+#ifdef TARGET_N64
if ((fakeItemBox->rot[1] < 0xAA1) && (fakeItemBox->rot[1] > 0)) {
gDPSetRenderMode(gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
} else if ((fakeItemBox->rot[1] >= 0x6AA5) && (fakeItemBox->rot[1] < 0x754E)) {
@@ -74,9 +81,12 @@ void render_actor_fake_item_box(Camera* camera, struct FakeItemBox* fakeItemBox)
} else if ((fakeItemBox->rot[1] >= 0xC711) && (fakeItemBox->rot[1] < 0xD1BA)) {
gDPSetRenderMode(gDisplayListHead++, G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2);
} else {
+#endif
gDPSetBlendMask(gDisplayListHead++, 0xFF);
gDPSetRenderMode(gDisplayListHead++, G_RM_ZB_CLD_SURF, G_RM_ZB_CLD_SURF2);
+#ifdef TARGET_N64
}
+#endif
gSPDisplayList(gDisplayListHead++, D_0D003090);
} else {
gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING);