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)) {