From caaf53c7e26e5702fed46adbe8da741e1be5ff63 Mon Sep 17 00:00:00 2001 From: LittleCube Date: Thu, 10 Oct 2024 20:24:47 -0400 Subject: [PATCH] use better logic for restoreHudVisibility --- patches/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/input.c b/patches/input.c index c17c145..b84067f 100644 --- a/patches/input.c +++ b/patches/input.c @@ -711,7 +711,7 @@ RECOMP_PATCH void Interface_UpdateButtonsPart1(PlayState* play) { } // @recomp_use_export_var no_bow_epona_fix: Don't enable the B button or restore hud visibility from Epona without a sword. - if ((player->stateFlags1 & PLAYER_STATE1_800000) == 0 || (!no_bow_epona_fix && BUTTON_STATUS(EQUIP_SLOT_B) == BTN_DISABLED)) { + if (BUTTON_STATUS(EQUIP_SLOT_B) == BTN_DISABLED && (!no_bow_epona_fix || (player->stateFlags1 & PLAYER_STATE1_800000) == 0)) { BUTTON_STATUS(EQUIP_SLOT_B) = BTN_ENABLED; restoreHudVisibility = true; }