# HG changeset patch # User rubidium # Date 1186183136 0 # Node ID 3b27d8ee81374c4f819d1c92ff925aa42422048e # Parent 8c221b48168a1872e4da36f5db34a8b49d43c628 (svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others. diff -r 8c221b48168a -r 3b27d8ee8137 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);