From f28084e65390705b6c8b23434b9da1eefef59452 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 18 Mar 2022 01:33:30 -0400 Subject: [PATCH] [client] core: remove state tracking in core_updateOverlayState The state is never updated when a message box is dismissed, so the cursor is never displayed when a second message box shows up. The only other caller, app_setOverlay, has state tracking already. --- client/src/core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index b70c2f2f..eaf3fd7a 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -654,12 +654,6 @@ void core_resetOverlayInputState(void) void core_updateOverlayState(void) { - static bool lastState = false; - bool currentState = app_isOverlayMode(); - if (lastState == currentState) - return; - - lastState = currentState; g_state.cursorLast = -2; static bool wasGrabbed = false;