mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Menu: Hotkeys should only select selectable items.
This commit is contained in:
parent
bb1e927c46
commit
4b8f4212ef
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ class ListMenu : Menu
|
||||||
|
|
||||||
for(int i = mDesc.mSelectedItem + 1; i < mDesc.mItems.Size(); i++)
|
for(int i = mDesc.mSelectedItem + 1; i < mDesc.mItems.Size(); i++)
|
||||||
{
|
{
|
||||||
if (mDesc.mItems[i].CheckHotkey(ch))
|
if (mDesc.mitems[i].Selectable() && mDesc.mItems[i].CheckHotkey(ch))
|
||||||
{
|
{
|
||||||
mDesc.mSelectedItem = i;
|
mDesc.mSelectedItem = i;
|
||||||
MenuSound("menu/cursor");
|
MenuSound("menu/cursor");
|
||||||
|
@ -123,7 +123,7 @@ class ListMenu : Menu
|
||||||
}
|
}
|
||||||
for(int i = 0; i < mDesc.mSelectedItem; i++)
|
for(int i = 0; i < mDesc.mSelectedItem; i++)
|
||||||
{
|
{
|
||||||
if (mDesc.mItems[i].CheckHotkey(ch))
|
if (mDesc.mitems[i].Selectable() && mDesc.mItems[i].CheckHotkey(ch))
|
||||||
{
|
{
|
||||||
mDesc.mSelectedItem = i;
|
mDesc.mSelectedItem = i;
|
||||||
MenuSound("menu/cursor");
|
MenuSound("menu/cursor");
|
||||||
|
|
Loading…
Reference in a new issue