From 7cdb0764a58d9e153e6f5a94121cc7f3badb2da6 Mon Sep 17 00:00:00 2001 From: CowQuack Date: Wed, 7 Jun 2023 12:24:20 -0400 Subject: [PATCH] le comment Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com> --- src/game/behaviors/spawn_star.inc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/behaviors/spawn_star.inc.c b/src/game/behaviors/spawn_star.inc.c index b8529e3f..2a16979f 100644 --- a/src/game/behaviors/spawn_star.inc.c +++ b/src/game/behaviors/spawn_star.inc.c @@ -157,6 +157,7 @@ void bhv_hidden_red_coin_star_init(void) { spawn_object(o, MODEL_TRANSPARENT_STAR, bhvRedCoinStarMarker); } + // check if bparam2 specifies a total number of coins that should spawn the star if (o->oBehParams2ndByte != 0) { o->oHiddenStarTriggerTotal = o->oBehParams2ndByte; o->oHiddenStarTriggerCounter = gRedCoinsCollected;