From 61eed28a50ba976a8fe30c15b8851e84493e0870 Mon Sep 17 00:00:00 2001 From: MysterD Date: Tue, 29 Mar 2022 19:49:36 -0700 Subject: [PATCH] Display the correct hidden number count on late join --- src/game/behaviors/hidden_star.inc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/behaviors/hidden_star.inc.c b/src/game/behaviors/hidden_star.inc.c index 0642e050..ea77d0a1 100644 --- a/src/game/behaviors/hidden_star.inc.c +++ b/src/game/behaviors/hidden_star.inc.c @@ -61,7 +61,10 @@ void bhv_hidden_star_trigger_loop(void) { if ((o->oInteractStatus & INT_STATUS_INTERACTED) || obj_check_if_collided_with_object(o, gMarioObjects[0]) == 1) { struct Object *hiddenStar = cur_obj_nearest_object_with_behavior(bhvHiddenStar); if (hiddenStar != NULL) { - hiddenStar->oHiddenStarTriggerCounter++; + + s16 count = (count_objects_with_behavior(bhvHiddenStarTrigger) - 1); + hiddenStar->oHiddenStarTriggerCounter = 5 - count; + if (hiddenStar->oHiddenStarTriggerCounter != 5) { spawn_orange_number(hiddenStar->oHiddenStarTriggerCounter, 0, 0, 0); }