Fix allowing any layer in the mirror

This commit is contained in:
MysterD 2023-11-13 21:36:20 -08:00
parent 4e9b83666e
commit f7f7747887
1 changed files with 3 additions and 2 deletions

View File

@ -741,9 +741,10 @@ Gfx* geo_mirror_mario_backface_culling(s32 callContext, struct GraphNode* node,
gSPSetGeometryMode(&gfx[1], G_CULL_BACK); gSPSetGeometryMode(&gfx[1], G_CULL_BACK);
gSPEndDisplayList(&gfx[2]); gSPEndDisplayList(&gfx[2]);
} }
u32 layer = ((asGenerated->parameter & 0x02) == 2) ? LAYER_TRANSPARENT : LAYER_OPAQUE; u32 layer = ((asGenerated->parameter & 0x02) == 2) ? LAYER_TRANSPARENT : LAYER_OPAQUE;
if ((asGenerated->parameter & 0xF0)) { if ((asGenerated->parameter & 0xFC) != 0) {
layer = asGenerated->parameter >> 0xF; layer = asGenerated->parameter >> 2;
} }
asGenerated->fnNode.node.flags = (asGenerated->fnNode.node.flags & 0xFF) | (layer << 8); asGenerated->fnNode.node.flags = (asGenerated->fnNode.node.flags & 0xFF) | (layer << 8);
} }