From a32af2589617311cb2f003ef3e4064d2e2a5f4a9 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sun, 3 Mar 2024 17:29:12 -0500 Subject: [PATCH] Restore vanilla pause red coin counter if there are only 8 --- src/game/ingame_menu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index 6571eff3c..699431439 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -2442,6 +2442,14 @@ static inline void red_coins_print_glyph(s16 *x, u8 glyph, u8 width) { } void render_pause_red_coins(void) { + if (gCurrentArea->numRedCoins == 8) { + u8 collected = gCurrentArea->numRedCoins - count_objects_with_behavior(bhvRedCoin); + for (s32 x = 0; x < collected; x++) { + print_animated_red_coin(GFX_DIMENSIONS_FROM_RIGHT_EDGE(30) - x * 20, 16); + } + return; + } + if (gCurrentArea->numRedCoins > 0) { u8 collected = gCurrentArea->numRedCoins - count_objects_with_behavior(bhvRedCoin); s16 x = gfx_dimensions_rect_from_left_edge(38);