(svn r21353) -Fix (r19056)[FS#4277]: New railtypes with overlays did not use the shore sprites as groundtiles for three-corner-raised slopes (at shore).

This commit is contained in:
frosch 2010-11-29 17:26:47 +00:00
parent c0312e1011
commit f2c84e0120

View File

@ -1878,10 +1878,12 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn
/* DrawFoundation modifies ti */ /* DrawFoundation modifies ti */
/* Draw ground */ /* Draw ground */
if (track == TRACK_BIT_NONE && rgt == RAIL_GROUND_WATER) { if (rgt == RAIL_GROUND_WATER) {
if (IsSteepSlope(ti->tileh)) { if (track != TRACK_BIT_NONE || IsSteepSlope(ti->tileh)) {
/* three-corner-raised slope or steep slope with track on upper part */
DrawShoreTile(ti->tileh); DrawShoreTile(ti->tileh);
} else { } else {
/* single-corner-raised slope with track on upper part */
DrawGroundSprite(SPR_FLAT_WATER_TILE, PAL_NONE); DrawGroundSprite(SPR_FLAT_WATER_TILE, PAL_NONE);
} }
} else { } else {