Increase bridge/tunnel per-tile cost

This commit is contained in:
Jonathan G Rennison
2021-06-17 22:48:23 +01:00
parent 3a67065332
commit f53ed56200

View File

@@ -880,6 +880,7 @@ static int32 PublicRoad_CalculateG(AyStar *, AyStarNode *current, OpenListNode *
if (distance > 1) { if (distance > 1) {
// We are planning to build a bridge or tunnel. Make that a bit more expensive. // We are planning to build a bridge or tunnel. Make that a bit more expensive.
cost += 6 * COST_FOR_SLOPE; cost += 6 * COST_FOR_SLOPE;
cost += distance * (COST_FOR_NEW_ROAD / 2);
} }
} }