From b6a3d27196b23d04f4c14bc8858d3a403eb648cf Mon Sep 17 00:00:00 2001 From: Panic Date: Thu, 27 Nov 2025 22:05:39 -0700 Subject: [PATCH] ui: fixed the HUD. If you aren't looking at your money, are you even playing? --- src/game/hud.h | 2 +- src/game/level_update.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/hud.h b/src/game/hud.h index 8117a1a8..85634739 100644 --- a/src/game/hud.h +++ b/src/game/hud.h @@ -13,7 +13,7 @@ #define HUD_BOTTOM_Y 19 // Same height as the Lakitu icon #define HUD_COINS_X 168 -#define HUD_CREDITS_X 100 +#define HUD_CREDITS_X 50 #define HUD_STARS_X 78 // This starts counting from the right edge #define HUD_CAMERA_X 54 // This starts counting from the right edge diff --git a/src/game/level_update.c b/src/game/level_update.c index 7ec8012b..2900a10d 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -958,7 +958,7 @@ void update_hud_values(void) { } } - if (gHudDisplay.numCredits < gMarioState->numCredits) { + if (gHudDisplay.numCredits < (u32)gMarioState->numCredits) { if (gGlobalTimer & 1) { u32 coinSound; if (gMarioState->action & (ACT_FLAG_SWIMMING | ACT_FLAG_METAL_WATER)) { @@ -970,7 +970,7 @@ void update_hud_values(void) { gHudDisplay.numCredits++; play_sound(coinSound, gMarioState->marioObj->header.gfx.cameraToObject); } - } else if (gHudDisplay.numCredits > gMarioState->numCredits) { + } else if (gHudDisplay.numCredits > (u32)gMarioState->numCredits) { if (gGlobalTimer & 1) { u32 coinSound; if (gMarioState->action & (ACT_FLAG_SWIMMING | ACT_FLAG_METAL_WATER)) {