mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(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:
parent
c0312e1011
commit
f2c84e0120
@ -1878,10 +1878,12 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn
|
||||
/* 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user