Fix players bouncing on non existent players when entering a level in an airborne action

This commit is contained in:
Agent X 2024-07-08 19:57:33 -04:00
parent e97ab5a31b
commit b0e76a699c
1 changed files with 5 additions and 5 deletions

View File

@ -1372,6 +1372,11 @@ u8 passes_pvp_interaction_checks(struct MarioState* attacker, struct MarioState*
}
u32 interact_player(struct MarioState* m, UNUSED u32 interactType, struct Object* o) {
// don't touch each other on level load
if (gCurrentArea == NULL || gCurrentArea->localAreaTimer < 60) {
return FALSE;
}
if (!m || !o) { return FALSE; }
if (!is_player_active(m)) { return FALSE; }
if (gServerSettings.playerInteractions == PLAYER_INTERACTIONS_NONE) { return FALSE; }
@ -1402,11 +1407,6 @@ u32 interact_player(struct MarioState* m, UNUSED u32 interactType, struct Object
return FALSE;
}
// don't touch each other on level load
if (gCurrentArea == NULL || gCurrentArea->localAreaTimer < 60) {
return FALSE;
}
return FALSE;
}