You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
Fix held object shadows on slopes
This commit is contained in:
@@ -218,12 +218,14 @@ Gfx *create_shadow_below_xyz(Vec3f pos, s16 shadowScale, u8 shadowSolidity, s8 s
|
||||
s8 isPlayer = FALSE;
|
||||
// Attempt to use existing floors before finding a new one.
|
||||
if ((gCurGraphNodeObjectNode == gMarioObject)
|
||||
&& (gMarioState->floor != NULL)) {
|
||||
&& (gMarioState->floor != NULL)
|
||||
&& (gCurGraphNodeHeldObject == NULL)) {
|
||||
s.floor = gMarioState->floor;
|
||||
s.floorHeight = gMarioState->floorHeight;
|
||||
isPlayer = TRUE;
|
||||
} else if ((gCurGraphNodeObject != &gMirrorMario)
|
||||
&& (gCurGraphNodeObjectNode->oFloor != NULL)) {
|
||||
&& (gCurGraphNodeObjectNode->oFloor != NULL)
|
||||
&& (gCurGraphNodeHeldObject == NULL)) {
|
||||
s.floor = gCurGraphNodeObjectNode->oFloor;
|
||||
s.floorHeight = gCurGraphNodeObjectNode->oFloorHeight;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user