From: Holger Schemel Date: Tue, 12 Nov 2024 18:37:13 +0000 (+0100) Subject: added leaving story screen to main menu with "cursor left" key X-Git-Tag: 4.4.0.0-test-4~61 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=745eb98854415dc8269089423b755115d3997b4d;p=rocksndiamonds.git added leaving story screen to main menu with "cursor left" key --- diff --git a/src/screens.c b/src/screens.c index 35a2386b..27ef88a6 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4459,7 +4459,7 @@ void HandleInfoScreen_Generic(int mx, int my, int dx, int dy, int button) DrawInfoScreen_GenericScreen(screen_nr, num_screens, use_global_screens); } - else if (button == MB_MENU_LEAVE) + else if (button == MB_MENU_LEAVE || dx < 0) { PlaySound(SND_MENU_ITEM_SELECTING); @@ -4483,7 +4483,7 @@ void HandleInfoScreen_Generic(int mx, int my, int dx, int dy, int button) return; } - else if ((mx >= 0 && my >= 0 && button == MB_MENU_CHOICE) || dx) + else if ((mx >= 0 && my >= 0 && button == MB_MENU_CHOICE) || dx > 0) { PlaySound(SND_MENU_ITEM_SELECTING);