1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Implement curved paths for all road node objects

This commit is contained in:
Tomasz Zieliński
2024-11-22 09:28:37 +01:00
parent 9277c5f4e7
commit f95bb58433
8 changed files with 45 additions and 31 deletions

View File

@@ -212,7 +212,7 @@ void RiverPlacer::preprocess()
{
auto river = VLC->terrainTypeHandler->getById(zone.getTerrainType())->river;
auto & a = neighbourZonesTiles[connectedToWaterZoneId];
auto availableArea = zone.areaPossible() + zone.freePaths();
auto availableArea = zone.areaForRoads();
for(const auto & tileToProcess : availableArea.getTilesVector())
{
int templateId = -1;