summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-11-02 11:23:44 +0000
committerfrosch <frosch@openttd.org>2008-11-02 11:23:44 +0000
commitf8ed412b40a95007e3cb938ffc6b7a6de838c3f6 (patch)
tree929418c634cf9d2033744d2af4ed9c9c6d902a53 /src
parent706dd0f86c2453eadb44742ca62d6c5d690e9238 (diff)
downloadopenttd-f8ed412b40a95007e3cb938ffc6b7a6de838c3f6.tar.xz
(svn r14556) -Fix (r14533): Bounding box with height > TILE_HEIGHT could cause circular dependencies with surrounding bridges.
Diffstat (limited to 'src')
-rw-r--r--src/landscape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 87fae70f3..c2494175d 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -420,7 +420,7 @@ void DrawFoundation(TileInfo *ti, Foundation f)
AddSortableSpriteToDraw(inclined_base + inclined, PAL_NONE, ti->x, ti->y,
f == FOUNDATION_INCLINED_X ? 16 : 1,
f == FOUNDATION_INCLINED_Y ? 16 : 1,
- TILE_HEIGHT + 1, ti->z
+ TILE_HEIGHT, ti->z
);
OffsetGroundSprite(31, 9);
} else if (IsLeveledFoundation(f)) {
@@ -469,7 +469,7 @@ void DrawFoundation(TileInfo *ti, Foundation f)
AddSortableSpriteToDraw(inclined_base + inclined, PAL_NONE, ti->x, ti->y,
f == FOUNDATION_INCLINED_X ? 16 : 1,
f == FOUNDATION_INCLINED_Y ? 16 : 1,
- TILE_HEIGHT + 1, ti->z
+ TILE_HEIGHT, ti->z
);
OffsetGroundSprite(31, 9);
}