From 3871ac5748cfb0c11bb10fcba1ba3b9eaf95b260 Mon Sep 17 00:00:00 2001 From: soyer Date: Sat, 21 Dec 2024 12:15:39 +0100 Subject: [PATCH] Always show both arrows in the main menu (#777) Since it wraps around since a while. (Not so sure we actually want it to wrap around in some but not other places, but for now it wraps around, so we should show both arrows.) --- src/uimenu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/uimenu.cpp b/src/uimenu.cpp index ed36cd4c..efaf21f6 100644 --- a/src/uimenu.cpp +++ b/src/uimenu.cpp @@ -539,12 +539,13 @@ void CUIMenu::MenuHandler (CUIMenu *pUIMenu, TMenuEvent Event) if (pUIMenu->m_pCurrentMenu) // if this is another menu? { + bool bIsMainMenu = pUIMenu->m_pCurrentMenu == s_MainMenu; pUIMenu->m_pUI->DisplayWrite ( pUIMenu->m_pParentMenu[pUIMenu->m_nCurrentMenuItem].Name, "", pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection].Name, - pUIMenu->m_nCurrentSelection > 0, - !!pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection+1].Name); + pUIMenu->m_nCurrentSelection > 0 || bIsMainMenu, + !!pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection+1].Name || bIsMainMenu); } else {