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

Only let Infantry and Mechanized Infantry Capture buildings for balancing reasons

parent cb84ff69
Branches
No related tags found
No related merge requests found
......@@ -754,7 +754,9 @@ void Level::handleSelectingEvents(Engine& engine, SDL_Event& event)
if (building.getXPosition() == u.getXPosition() &&
building.getYPosition() == u.getYPosition())
{
if (building.getFaction() != u.getFaction())
if ((building.getFaction() != u.getFaction()) &&
(u.getUnitTypeId() == UnitTypeId::INFANTERY ||
u.getUnitTypeId() == UnitTypeId::MECHANIZED_INFANTERY))
{
m_captureBuilding = id;
m_contextMenu.setOptions(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment