diff options
author | rubidium <rubidium@openttd.org> | 2007-05-26 10:40:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-26 10:40:34 +0000 |
commit | 78be11be407f7496d57d40f4d866942192b6166b (patch) | |
tree | 7179e11385fc32fb010bc1f6f4a923f03dad38fe /src/road_cmd.cpp | |
parent | 932a968af2d21c4beced4b5e62778587af092924 (diff) | |
download | openttd-78be11be407f7496d57d40f4d866942192b6166b.tar.xz |
(svn r9931) -Fix: some glitches with catenary and bridges.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index e4e86614e..a71f1088a 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -830,7 +830,7 @@ void DrawTramCatenary(TileInfo *ti, RoadBits tram) if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile) && !HASBIT(_transparent_opt, TO_BUILDINGS)) { uint height = GetBridgeHeight(GetNorthernBridgeEnd(ti->tile)); - if (height <= TilePixelHeight(ti->tile) + TILE_HEIGHT) return; + if (height <= GetTileMaxZ(ti->tile) + TILE_HEIGHT) return; } SpriteID front; @@ -851,8 +851,8 @@ void DrawTramCatenary(TileInfo *ti, RoadBits tram) pal = PALETTE_TO_TRANSPARENT; } - AddSortableSpriteToDraw(back, pal, ti->x, ti->y, 16, 16, 0x20, ti->z); - AddSortableSpriteToDraw(front, pal, ti->x, ti->y, 16, 16, 0x20, ti->z); + AddSortableSpriteToDraw(back, pal, ti->x, ti->y, 16, 16, 0x1F, ti->z); + AddSortableSpriteToDraw(front, pal, ti->x, ti->y, 16, 16, 0x1F, ti->z); } /** |