ui: fixed the HUD. If you aren't looking at your money, are you even playing?

This commit is contained in:
Panic
2025-11-27 22:05:39 -07:00
parent 259603d0f6
commit b6a3d27196
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
#define HUD_BOTTOM_Y 19 // Same height as the Lakitu icon #define HUD_BOTTOM_Y 19 // Same height as the Lakitu icon
#define HUD_COINS_X 168 #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_STARS_X 78 // This starts counting from the right edge
#define HUD_CAMERA_X 54 // This starts counting from the right edge #define HUD_CAMERA_X 54 // This starts counting from the right edge

View File

@@ -958,7 +958,7 @@ void update_hud_values(void) {
} }
} }
if (gHudDisplay.numCredits < gMarioState->numCredits) { if (gHudDisplay.numCredits < (u32)gMarioState->numCredits) {
if (gGlobalTimer & 1) { if (gGlobalTimer & 1) {
u32 coinSound; u32 coinSound;
if (gMarioState->action & (ACT_FLAG_SWIMMING | ACT_FLAG_METAL_WATER)) { if (gMarioState->action & (ACT_FLAG_SWIMMING | ACT_FLAG_METAL_WATER)) {
@@ -970,7 +970,7 @@ void update_hud_values(void) {
gHudDisplay.numCredits++; gHudDisplay.numCredits++;
play_sound(coinSound, gMarioState->marioObj->header.gfx.cameraToObject); play_sound(coinSound, gMarioState->marioObj->header.gfx.cameraToObject);
} }
} else if (gHudDisplay.numCredits > gMarioState->numCredits) { } else if (gHudDisplay.numCredits > (u32)gMarioState->numCredits) {
if (gGlobalTimer & 1) { if (gGlobalTimer & 1) {
u32 coinSound; u32 coinSound;
if (gMarioState->action & (ACT_FLAG_SWIMMING | ACT_FLAG_METAL_WATER)) { if (gMarioState->action & (ACT_FLAG_SWIMMING | ACT_FLAG_METAL_WATER)) {