From 0c2ed71cdd2676af6aecf6e26b0ab1a692e66d71 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 30 Sep 2019 22:44:05 +0700 Subject: [PATCH] fix bug when down arrow gave no result after mouse move in main menu Steps to reproduce: 1. Load game. 2. Press any key to bring up the main menu. 3. Move the mouse anywhere out of the menu entries. 4. Press Down arrow. Expected result: the menu cursor sound is played, the first menu element is selected. Actual result: the menu cursor sound is played, no menu element is selected. Repeated Down arrow pressing doesn't give any result, either. If on step 4 Up arrow is pressed, the last element in the menu is selected. --- wadsrc/static/zscript/ui/menu/listmenu.zs | 1 - 1 file changed, 1 deletion(-) diff --git a/wadsrc/static/zscript/ui/menu/listmenu.zs b/wadsrc/static/zscript/ui/menu/listmenu.zs index 37d00f6e0..66d209381 100644 --- a/wadsrc/static/zscript/ui/menu/listmenu.zs +++ b/wadsrc/static/zscript/ui/menu/listmenu.zs @@ -144,7 +144,6 @@ class ListMenu : Menu { int oldSelect = mDesc.mSelectedItem; int startedAt = mDesc.mSelectedItem; - if (startedAt < 0) startedAt = 0; switch (mkey) {