Changeset - r6992:38850e911adb
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-06-21 14:58:30
rubidium@openttd.org
(svn r10248) -Codechange: don't limit the cost of tunnels.
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -501,13 +501,12 @@ CommandCost CmdBuildTunnel(TileIndex sta
 
		if (!_cheats.crossing_tunnels.value && IsTunnelInWay(end_tile, start_z)) {
 
			return_cmd_error(STR_5003_ANOTHER_TUNNEL_IN_THE_WAY);
 
		}
 

	
 
		cost.AddCost(_price.build_tunnel);
 
		cost.AddCost(cost.GetCost() >> 3); // add a multiplier for longer tunnels
 
		if (cost.GetCost() >= 400000000) cost.AddCost(400000000 - cost.GetCost());
 
	}
 

	
 
	/* Add the cost of the entrance */
 
	cost.AddCost(_price.build_tunnel);
 
	cost.AddCost(ret);
 

	
0 comments (0 inline, 0 general)