(svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others.
--- a/src/tunnelbridge_cmd.cpp Fri Aug 03 20:46:59 2007 +0000
+++ b/src/tunnelbridge_cmd.cpp Fri Aug 03 23:18:56 2007 +0000
@@ -250,16 +250,10 @@
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);