diff options
author | frosch <frosch@openttd.org> | 2017-02-12 12:03:07 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-02-12 12:03:07 +0000 |
commit | 7f1c176706d556af1f8b309355894cef0b7e625e (patch) | |
tree | c549d68d35fa2e80ec61b2a5d3451f016fe67cfc | |
parent | 7d6d3897dbafcab492d67b0fb486c044b73be019 (diff) | |
download | openttd-7f1c176706d556af1f8b309355894cef0b7e625e.tar.xz |
(svn r27746) -Fix [FS#6538]: PR_CLEAR_ROAD refers to cost per roadbit. Removing secondary roadtypes from bridges was too cheap. (JGR)
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 6482a14b1..5e432a2e6 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -224,7 +224,7 @@ static CommandCost RemoveRoad(TileIndex tile, DoCommandFlag flags, RoadBits piec TileIndex other_end = GetOtherTunnelBridgeEnd(tile); /* Pay for *every* tile of the bridge or tunnel */ uint len = GetTunnelBridgeLength(other_end, tile) + 2; - cost.AddCost(len * _price[PR_CLEAR_ROAD]); + cost.AddCost(len * 2 * _price[PR_CLEAR_ROAD]); if (flags & DC_EXEC) { Company *c = Company::GetIfValid(GetRoadOwner(tile, rt)); if (c != NULL) { |