Allow vanish cap to pass through walls

fixes #16
This commit is contained in:
MysterD 2020-09-05 13:31:27 -07:00
parent 1324ce83be
commit 9427afb14b

View file

@ -130,12 +130,15 @@ static s32 find_wall_collisions_from_list(struct SurfaceNode *surfaceNode,
}
// If Mario has a vanish cap, pass through the vanish cap wall.
u8 passThroughWall = FALSE;
for (int i = 0; i < MAX_PLAYERS; i++) {
if (gCurrentObject != NULL && gCurrentObject == gMarioStates[i].marioObj
&& (gMarioStates[i].flags & MARIO_VANISH_CAP)) {
passThroughWall = TRUE;
continue;
}
}
if (passThroughWall) { continue; }
}
}