From 205e700b265464f80cf76db88a40a129ffc3d9f7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 26 Jul 2007 18:36:32 +0000 Subject: [PATCH] (svn r10699) -Fix (r10698): bridge middle parts were drawn too high if the southern bridge head has a foundation. --- src/bridge_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bridge_map.cpp b/src/bridge_map.cpp index c2dabe0b66..12a4bd6d45 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); }