Merge pull request #287 from GateGuy/NoDrawFishFix
Fixed fish constantly respawning with NODRAWINGDISTANCE=1
This commit is contained in:
commit
f00c553f75
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue