mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Clear unused tiles to make more space for roads.
This commit is contained in:
@ -1662,6 +1662,14 @@ void CRmgTemplateZone::createObstacles2(CMapGenerator* gen)
|
||||
}
|
||||
}
|
||||
}
|
||||
//cleanup - remove unused possible tiles to make space for roads
|
||||
for (auto tile : tileinfo)
|
||||
{
|
||||
if (gen->isPossible(tile))
|
||||
{
|
||||
gen->setOccupied (tile, ETileType::FREE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CRmgTemplateZone::connectRoads(CMapGenerator* gen)
|
||||
|
Reference in New Issue
Block a user