1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Solution suggested by ChatGPT

This commit is contained in:
Tomasz Zieliński
2025-03-13 19:45:28 +01:00
parent 2c3284791d
commit 58041ee123
3 changed files with 45 additions and 12 deletions

View File

@@ -93,7 +93,9 @@ bool RoadPlacer::createRoad(const int3 & destination)
}
}
float ret = dst.dist2d(src);
//float ret = dst.dist2d(src);
//float ret = rmg::Path::nonEuclideanCostFunction(src, dst);
float ret = rmg::Path::curvedCost(src, dst, border.getCenterOfMass());
if (visitableTiles.contains(src) || visitableTiles.contains(dst))
{