From 5f08a9c69afe7da237defd3352bff4febd692060 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Tue, 2 Apr 2024 18:52:46 -0300 Subject: [PATCH] Don't close ingame menu when pressing confirm btn For some reason, the code that handled button presses for the ingame menu checked the confirm button in the wrong places. --- desktop_version/src/Input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index dcef87dc..59dd3872 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -3169,7 +3169,7 @@ void mapinput(void) || (game.menupage >= 20 && game.menupage <= 21) || (game.menupage >= 30 && game.menupage <= 32)) { - if (key.isDown(KEYBOARD_ENTER) || key.isDown(game.controllerButton_map) || touch::button_tapped(TOUCH_BUTTON_CONFIRM)) game.press_map = true; + if (key.isDown(KEYBOARD_ENTER) || key.isDown(game.controllerButton_map)) game.press_map = true; if ((key.isDown(27) || touch::button_tapped(TOUCH_BUTTON_CANCEL)) && !game.mapheld) { game.mapheld = true; @@ -3192,7 +3192,7 @@ void mapinput(void) else { if (key.isDown(KEYBOARD_ENTER) || key.isDown(27) || key.isDown(game.controllerButton_map) - || touch::button_tapped(TOUCH_BUTTON_CANCEL) || touch::button_tapped(TOUCH_BUTTON_CONFIRM)) + || touch::button_tapped(TOUCH_BUTTON_CANCEL)) { game.press_map = true; }