Allow players to bounce on non grounded players' heads

This commit is contained in:
Agent X 2024-03-06 20:11:34 -05:00
parent 8c6102d1e1
commit 8ca0fbb322

View file

@ -1335,7 +1335,8 @@ static u8 resolve_player_collision(struct MarioState* m, struct MarioState* m2)
// bounce
u32 interaction = determine_interaction(m, m2->marioObj);
f32 aboveFloor = m2->pos[1] - m2->floorHeight;
if ((interaction & INT_HIT_FROM_ABOVE) && (aboveFloor < 1)) {
bool aboveFloorCheck = configCoopCompatibility ? (aboveFloor < 1) : true;
if ((interaction & INT_HIT_FROM_ABOVE) && aboveFloorCheck) {
m2->bounceSquishTimer = max(m2->bounceSquishTimer, 4);
f32 velY;