Changeset - r7403:84cf07664593
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-08-03 23:18:56
rubidium@openttd.org
(svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others.
1 file changed with 2 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -250,16 +250,10 @@ CommandCost CmdBuildBridge(TileIndex end
 
	tileh_end = GetTileSlope(tile_end, &z_end);
 

	
 
	if (IsSteepSlope(tileh_start)) z_start += TILE_HEIGHT;
 
	if (HASBIT(BRIDGE_FULL_LEVELED_FOUNDATION, tileh_start)) {
 
		z_start += TILE_HEIGHT;
 
		tileh_start = SLOPE_FLAT;
 
	}
 
	if (HASBIT(BRIDGE_FULL_LEVELED_FOUNDATION, tileh_start)) z_start += TILE_HEIGHT;
 

	
 
	if (IsSteepSlope(tileh_end)) z_end += TILE_HEIGHT;
 
	if (HASBIT(BRIDGE_FULL_LEVELED_FOUNDATION, tileh_end)) {
 
		z_end += TILE_HEIGHT;
 
		tileh_end = SLOPE_FLAT;
 
	}
 
	if (HASBIT(BRIDGE_FULL_LEVELED_FOUNDATION, tileh_end)) z_end += TILE_HEIGHT;
 

	
 
	if (z_start != z_end) return_cmd_error(STR_5009_LEVEL_LAND_OR_WATER_REQUIRED);
 

	
0 comments (0 inline, 0 general)