Changeset - r22539:7e6687f6c997
[Not reviewed]
master
0 1 0
frosch - 7 years ago 2017-02-12 12:03:07
frosch@openttd.org
(svn r27746) -Fix [FS#6538]: PR_CLEAR_ROAD refers to cost per roadbit. Removing secondary roadtypes from bridges was too cheap. (JGR)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -224,7 +224,7 @@ static CommandCost RemoveRoad(TileIndex 
 
			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) {
0 comments (0 inline, 0 general)