Skip to content
Snippets Groups Projects
Commit 1687c1cf authored by Max Cherris's avatar Max Cherris
Browse files

Fix showing tiles when not it should

parent fa34e64f
No related branches found
No related tags found
2 merge requests!34Building features,!29Merge main into box2d to implement physics
......@@ -842,9 +842,12 @@ void Level::handleMenuActiveEvents(Engine& engine, SDL_Event& event)
BuildingFaction b_f = static_cast<BuildingFaction>(u_f);
b.switch_faction(b_f);
m_units.at(m_selectedUnit).setState(UnitState::UNAVAILABLE);
m_state = LevelState::SELECTING_STATE;
m_selectedBuilding = -1;
m_selectedUnit = -1;
m_showReachableTiles = false;
m_showAttackableTiles = false;
}
if (cmd == "End Turn")
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment