diff options
author | rubidium <rubidium@openttd.org> | 2007-08-03 23:18:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-03 23:18:56 +0000 |
commit | 537025e63b6cde0f0b9d423f2e8a858d91241263 (patch) | |
tree | e497dd04766e664e778f09d648ef7b5c223b812b | |
parent | ff2f17d1e84a79f3042628be3bcfc84ea71e2b3a (diff) | |
download | openttd-537025e63b6cde0f0b9d423f2e8a858d91241263.tar.xz |
(svn r10776) -Fix [FS#1081]: you would not pay for some foundations of bridges whereas you would pay for others.
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 05fac47d8..26d13e4d8 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -250,16 +250,10 @@ CommandCost CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p 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); |