Fix players bouncing on non existent players when entering a level in an airborne action
This commit is contained in:
parent
e97ab5a31b
commit
b0e76a699c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue