[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.
This commit is contained in:
Quantum 2022-03-18 01:33:30 -04:00 committed by Geoffrey McRae
parent 6c76d6ada5
commit f28084e653

View File

@ -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;