Fixed constant fish respawning

This commit is contained in:
GateGuy 2020-06-01 17:33:22 -04:00
parent f6c54e95b2
commit 269cd8f60f
1 changed files with 2 additions and 0 deletions

View File

@ -62,11 +62,13 @@ void fish_act_spawn(void) {
* Y coordinate is greater than 2000.0f then spawn another fish. * Y coordinate is greater than 2000.0f then spawn another fish.
*/ */
void fish_act_respawn(void) { void fish_act_respawn(void) {
#ifndef NODRAWINGDISTANCE
if (gCurrLevelNum != LEVEL_SA) { if (gCurrLevelNum != LEVEL_SA) {
if (gMarioObject->oPosY - o->oPosY > 2000.0f) { if (gMarioObject->oPosY - o->oPosY > 2000.0f) {
o->oAction = FISH_ACT_RESPAWN; o->oAction = FISH_ACT_RESPAWN;
} }
} }
#endif
} }
/** /**