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.)
network^2
soyer 3 weeks ago committed by GitHub
parent 594791530b
commit 3871ac5748
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      src/uimenu.cpp

@ -539,12 +539,13 @@ void CUIMenu::MenuHandler (CUIMenu *pUIMenu, TMenuEvent Event)
if (pUIMenu->m_pCurrentMenu) // if this is another menu? if (pUIMenu->m_pCurrentMenu) // if this is another menu?
{ {
bool bIsMainMenu = pUIMenu->m_pCurrentMenu == s_MainMenu;
pUIMenu->m_pUI->DisplayWrite ( pUIMenu->m_pUI->DisplayWrite (
pUIMenu->m_pParentMenu[pUIMenu->m_nCurrentMenuItem].Name, pUIMenu->m_pParentMenu[pUIMenu->m_nCurrentMenuItem].Name,
"", "",
pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection].Name, pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection].Name,
pUIMenu->m_nCurrentSelection > 0, pUIMenu->m_nCurrentSelection > 0 || bIsMainMenu,
!!pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection+1].Name); !!pUIMenu->m_pCurrentMenu[pUIMenu->m_nCurrentSelection+1].Name || bIsMainMenu);
} }
else else
{ {

Loading…
Cancel
Save