diff options
author | rubidium <rubidium@openttd.org> | 2007-07-26 18:36:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-26 18:36:32 +0000 |
commit | 7b2c963b6422606921da2b1f2fd824d215cb300b (patch) | |
tree | 73d87dceac0f97da1a36145fc5b4b63abd88aa1c /src | |
parent | 903a0a08c2ca853d8eeb3aa00caf7afa7faf53de (diff) | |
download | openttd-7b2c963b6422606921da2b1f2fd824d215cb300b.tar.xz |
(svn r10699) -Fix (r10698): bridge middle parts were drawn too high if the southern bridge head has a foundation.
Diffstat (limited to 'src')
-rw-r--r-- | src/bridge_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bridge_map.cpp b/src/bridge_map.cpp index c2dabe0b6..12a4bd6d4 100644 --- a/src/bridge_map.cpp +++ b/src/bridge_map.cpp @@ -44,11 +44,11 @@ uint GetBridgeHeight(TileIndex t) { uint h; Slope tileh = GetTileSlope(t, &h); - uint f = GetBridgeFoundation(tileh, DiagDirToAxis(GetBridgeRampDirection(t))); + Foundation f = GetBridgeFoundation(tileh, DiagDirToAxis(GetBridgeRampDirection(t))); /* one height level extra if the ramp is on a flat foundation */ return h + TILE_HEIGHT + - (IS_INT_INSIDE(f, 1, 15) ? TILE_HEIGHT : 0) + + (IsLeveledFoundation(f) ? TILE_HEIGHT : 0) + (IsSteepSlope(tileh) ? TILE_HEIGHT : 0); } |