Merge pull request #287 from GateGuy/NoDrawFishFix

Fixed fish constantly respawning with NODRAWINGDISTANCE=1
This commit is contained in:
fgsfds 2020-06-02 02:41:14 +03:00 committed by GitHub
commit f00c553f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
*/
void fish_act_respawn(void) {
#ifndef NODRAWINGDISTANCE
if (gCurrLevelNum != LEVEL_SA) {
if (gMarioObject->oPosY - o->oPosY > 2000.0f) {
o->oAction = FISH_ACT_RESPAWN;
}
}
#endif
}
/**