# HG changeset patch # User frosch # Date 2010-11-29 17:26:47 # Node ID fd8496524ff682b5b65c7a6fc5b866b814484fe2 # Parent e8b58a1e35fae6b3a4a6233a4d71619cc187f86c (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). diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1878,10 +1878,12 @@ static void DrawTrackBitsOverlay(TileInf /* DrawFoundation modifies ti */ /* Draw ground */ - if (track == TRACK_BIT_NONE && rgt == RAIL_GROUND_WATER) { - if (IsSteepSlope(ti->tileh)) { + if (rgt == RAIL_GROUND_WATER) { + if (track != TRACK_BIT_NONE || IsSteepSlope(ti->tileh)) { + /* three-corner-raised slope or steep slope with track on upper part */ DrawShoreTile(ti->tileh); } else { + /* single-corner-raised slope with track on upper part */ DrawGroundSprite(SPR_FLAT_WATER_TILE, PAL_NONE); } } else {