mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Merge pull request #287 from GateGuy/NoDrawFishFix
Fixed fish constantly respawning with NODRAWINGDISTANCE=1
This commit is contained in:
commit
f00c553f75
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue