mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-07 06:39:08 +00:00
(svn r20408) -Fix [FS#4013]: PBS reservations were always displayed on halftile foundations if the railtype uses overlays.
This commit is contained in:
parent
ef50a89ca5
commit
5f874b90f9
@ -1998,7 +1998,7 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn
|
|||||||
}
|
}
|
||||||
|
|
||||||
DrawTrackSprite(ground + offset, PAL_NONE, ti, fake_slope);
|
DrawTrackSprite(ground + offset, PAL_NONE, ti, fake_slope);
|
||||||
if (HasReservedTracks(ti->tile, track)) {
|
if (_settings_client.gui.show_track_reservation && HasReservedTracks(ti->tile, track)) {
|
||||||
DrawTrackSprite(overlay + offset, PALETTE_CRASH, ti, fake_slope);
|
DrawTrackSprite(overlay + offset, PALETTE_CRASH, ti, fake_slope);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user