Fix rendering double digit key count (#6371)

This commit is contained in:
Philip Dubé 2026-03-19 01:39:46 +00:00 committed by GitHub
parent 9f6ffc9f2a
commit 6a9567b369
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,9 +4,7 @@
#include "textures/do_action_static/do_action_static.h"
#include "textures/icon_item_static/icon_item_static.h"
#include "soh_assets.h"
#include "soh/Enhancements/randomizer/randomizer_entrance.h"
#include "libultraship/bridge.h"
#include "soh/Enhancements/gameplaystats.h"
#include "soh/Enhancements/custom-message/CustomMessageInterfaceAddon.h"
#include "soh/Enhancements/cosmetics/cosmeticsTypes.h"
@ -5339,15 +5337,17 @@ void Interface_Draw(PlayState* play) {
interfaceCtx->counterDigits[3] -= 10;
}
svar3 = 16;
if (interfaceCtx->counterDigits[2] != 0) {
OVERLAY_DISP = Gfx_TextureI8(
OVERLAY_DISP, ((u8*)((u8*)digitTextures[interfaceCtx->counterDigits[2]])), 8, 16,
PosX_SKC + 8, PosY_SKC, 8, 16, 1 << 10, 1 << 10);
PosX_SKC + 16, PosY_SKC, 8, 16, 1 << 10, 1 << 10);
svar3 = 24;
}
OVERLAY_DISP =
Gfx_TextureI8(OVERLAY_DISP, ((u8*)digitTextures[interfaceCtx->counterDigits[3]]), 8, 16,
PosX_SKC + 16, PosY_SKC, 8, 16, 1 << 10, 1 << 10);
PosX_SKC + svar3, PosY_SKC, 8, 16, 1 << 10, 1 << 10);
}
break;
default: