Skip to content

Commit

Permalink
Merge branch 'main' into network
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Dec 21, 2024
2 parents 6e7ee27 + 3871ac5 commit ac27acc
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 ac27acc

Please sign in to comment.