mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-03 14:11:10 +00:00
Fixed infinite loop with King Bobomb
This commit is contained in:
parent
3145dfabdc
commit
214697fc8e
2 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ struct MarioState* king_bobomb_nearest_mario_state() {
|
|||
nearestDist = dist;
|
||||
}
|
||||
}
|
||||
if (!checkActive) { break; }
|
||||
checkActive = FALSE;
|
||||
} while (nearest == NULL);
|
||||
|
||||
|
|
|
@ -535,6 +535,7 @@ struct MarioState* nearest_mario_state_to_object(struct Object *obj) {
|
|||
nearestDist = dist;
|
||||
}
|
||||
}
|
||||
if (!checkActive) { break; }
|
||||
checkActive = FALSE;
|
||||
} while (nearest == NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue