Skip to content

Commit

Permalink
Always show both arrows in the main menu (#777)
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
soyersoyer authored Dec 21, 2024
1 parent 5947915 commit 3871ac5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uimenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 3871ac5

Please sign in to comment.