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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user