diff --git a/src/game/mario.c b/src/game/mario.c index ab15bb4a..a57702f9 100644 --- a/src/game/mario.c +++ b/src/game/mario.c @@ -1869,10 +1869,10 @@ s32 execute_mario_action(UNUSED struct Object *o) { struct NetworkPlayer* np = &gNetworkPlayers[gMarioState->playerIndex]; if (np->type != NPT_LOCAL) { bool levelAreaMismatch = - (np->currCourseNum != gCurrCourseNum - || np->currActNum != gCurrActNum - || np->currLevelNum != gCurrLevelNum - || np->currAreaIndex != gCurrAreaIndex); + (np->currCourseNum != gNetworkPlayerLocal->currCourseNum + || np->currActNum != gNetworkPlayerLocal->currActNum + || np->currLevelNum != gNetworkPlayerLocal->currLevelNum + || np->currAreaIndex != gNetworkPlayerLocal->currAreaIndex); if (!np->connected || levelAreaMismatch) { gMarioState->marioObj->header.gfx.node.flags |= GRAPH_RENDER_INVISIBLE; diff --git a/src/game/obj_behaviors.c b/src/game/obj_behaviors.c index aaca0d84..638409a3 100644 --- a/src/game/obj_behaviors.c +++ b/src/game/obj_behaviors.c @@ -519,10 +519,10 @@ u8 is_player_active(struct MarioState* m) { if (np->type != NPT_LOCAL) { if (!np->connected) { return FALSE; } bool levelAreaMismatch = - (np->currCourseNum != gCurrCourseNum - || np->currActNum != gCurrActNum - || np->currLevelNum != gCurrLevelNum - || np->currAreaIndex != gCurrAreaIndex); + (np->currCourseNum != gNetworkPlayerLocal->currCourseNum + || np->currActNum != gNetworkPlayerLocal->currActNum + || np->currLevelNum != gNetworkPlayerLocal->currLevelNum + || np->currAreaIndex != gNetworkPlayerLocal->currAreaIndex); if (levelAreaMismatch) { return FALSE; } } return TRUE;