(svn r27746) -Fix [FS#6538]: PR_CLEAR_ROAD refers to cost per roadbit. Removing secondary roadtypes from bridges was too cheap. (JGR)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user