mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Prevented enemies/events from considering disconnected players
This commit is contained in:
parent
79d30d3c1c
commit
cf23ed92a2
1 changed files with 1 additions and 0 deletions
|
|
@ -513,6 +513,7 @@ s32 is_point_within_radius_of_mario(f32 x, f32 y, f32 z, s32 dist) {
|
||||||
|
|
||||||
u8 is_player_active(struct MarioState* m) {
|
u8 is_player_active(struct MarioState* m) {
|
||||||
if (m->action == ACT_BUBBLED) { return FALSE; }
|
if (m->action == ACT_BUBBLED) { return FALSE; }
|
||||||
|
if (gNetworkPlayers[m->playerIndex].type != NPT_LOCAL && !gNetworkPlayers[m->playerIndex].connected) { return FALSE; }
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue