Skip to content
Snippets Groups Projects
Commit c3814c85 authored by Frederik's avatar Frederik
Browse files

Disallow changing menu option while in info panel

parent d90adea2
Branches
No related tags found
1 merge request!29Merge main into box2d to implement physics
......@@ -803,9 +803,12 @@ void Level::handleMenuActiveEvents(Engine& engine, SDL_Event& event)
m_showUnitInfoMenu = false;
}
if (event.key.keysym.sym == SDLK_UP || event.key.keysym.sym == SDLK_DOWN)
{
if (!m_showUnitInfoMenu)
{
m_contextMenu.handleEvent(engine, event);
}
}
if (event.key.keysym.sym == SDLK_RETURN)
{
std::string cmd = m_contextMenu.getSelectedOption();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment