mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +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 */
|
/* 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user