From f53ed562006cf909095619e236e50c7bc779ee93 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 17 Jun 2021 22:48:23 +0100 Subject: [PATCH] Increase bridge/tunnel per-tile cost --- src/road.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/road.cpp b/src/road.cpp index 26699fab65..ec6453d559 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -880,6 +880,7 @@ static int32 PublicRoad_CalculateG(AyStar *, AyStarNode *current, OpenListNode * if (distance > 1) { // We are planning to build a bridge or tunnel. Make that a bit more expensive. cost += 6 * COST_FOR_SLOPE; + cost += distance * (COST_FOR_NEW_ROAD / 2); } }