mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +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;
|
nearestDist = dist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!checkActive) { break; }
|
||||||
checkActive = FALSE;
|
checkActive = FALSE;
|
||||||
} while (nearest == NULL);
|
} while (nearest == NULL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -535,6 +535,7 @@ struct MarioState* nearest_mario_state_to_object(struct Object *obj) {
|
||||||
nearestDist = dist;
|
nearestDist = dist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!checkActive) { break; }
|
||||||
checkActive = FALSE;
|
checkActive = FALSE;
|
||||||
} while (nearest == NULL);
|
} while (nearest == NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue