mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-10 19:01:46 +00:00
Restore vanilla pause red coin counter if there are only 8
This commit is contained in:
parent
a0a65e19bd
commit
a32af25896
1 changed files with 8 additions and 0 deletions
|
|
@ -2442,6 +2442,14 @@ static inline void red_coins_print_glyph(s16 *x, u8 glyph, u8 width) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void render_pause_red_coins(void) {
|
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) {
|
if (gCurrentArea->numRedCoins > 0) {
|
||||||
u8 collected = gCurrentArea->numRedCoins - count_objects_with_behavior(bhvRedCoin);
|
u8 collected = gCurrentArea->numRedCoins - count_objects_with_behavior(bhvRedCoin);
|
||||||
s16 x = gfx_dimensions_rect_from_left_edge(38);
|
s16 x = gfx_dimensions_rect_from_left_edge(38);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue