(svn r10699) -Fix (r10698): bridge middle parts were drawn too high if the southern bridge head has a foundation.
authorrubidium
Thu, 26 Jul 2007 18:36:32 +0000
changeset 7336 180fe387acfc
parent 7335 141c6b86ec1f
child 7337 b6b77a60343a
(svn r10699) -Fix (r10698): bridge middle parts were drawn too high if the southern bridge head has a foundation.
src/bridge_map.cpp
--- a/src/bridge_map.cpp	Thu Jul 26 16:51:10 2007 +0000
+++ b/src/bridge_map.cpp	Thu Jul 26 18:36:32 2007 +0000
@@ -44,11 +44,11 @@
 {
 	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);
 }