Fixed off-by-one bug on health meter

This commit is contained in:
KiritoDv 2024-04-13 03:14:01 -06:00 committed by Sonic Dreamcaster
parent e38e82535d
commit a041298125

View File

@ -3098,8 +3098,8 @@ void HUD_DrawBossHealth(void) {
}
if (D_801616C4 >= 0.88f) {
temp6 = sp3C + 8.0f;
temp7 = 101.0f - ((2200.0f / 69.0f) * D_801616C8) + temp1;
temp6 = sp3C + 9.0f;
temp7 = 101.0f - (31.884058f * D_801616C8) + temp1;
if (D_801616C8 > 0.0f) {
Lib_TextureRect_RGBA16(&gMasterDisp, D_Tex_800D99F8, 32, 32, temp6, temp7, 0.2f, D_801616C8);
}