Prevent new bug where stars just flood out lol

This commit is contained in:
MysterD 2020-09-19 16:35:32 -07:00
parent 7ff4eec4ee
commit 04738fedd9

View file

@ -127,12 +127,12 @@ struct Object *spawn_star(struct Object *sp30, f32 sp34, f32 sp38, f32 sp3C) {
struct Object* spawn_default_star(f32 x, f32 y, f32 z) {
if (sCurrPlayMode != PLAY_MODE_NORMAL && sCurrPlayMode != PLAY_MODE_PAUSED) { return NULL; }
if (gSpawnedStarDefault == (1 + o->oBehParams)) { return NULL; }
if (gSpawnedStarDefault) { return NULL; }
struct Object *star;
u32 behParams = o->oBehParams;
star = spawn_star(star, x, y, z);
star->oBehParams2ndByte = 0;
gSpawnedStarDefault = (1 + o->oBehParams);
gSpawnedStarDefault = TRUE;
network_send_spawn_star(star, 0, x, y, z, behParams);
return star;
}