(svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others.
authorrubidium
Fri, 03 Aug 2007 23:18:56 +0000
changeset 7899 3b6a66b414ec
parent 7898 fdc041ac5190
child 7900 b88064d431b5
(svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others.
src/tunnelbridge_cmd.cpp
--- 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);