From 04738fedd975186cce7c4a997ff288a5e5abb980 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 19 Sep 2020 16:35:32 -0700 Subject: [PATCH] Prevent new bug where stars just flood out lol --- src/game/behaviors/spawn_star.inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/behaviors/spawn_star.inc.c b/src/game/behaviors/spawn_star.inc.c index 9e39a9a9c..23a0ded9e 100644 --- a/src/game/behaviors/spawn_star.inc.c +++ b/src/game/behaviors/spawn_star.inc.c @@ -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; }