@@ -1989,25 +1989,25 @@ static void DrawTrackBitsOverlay(TileInf
track = CornerToTrackBits(halftile_corner);
int offset;
switch (track) {
default: NOT_REACHED();
case TRACK_BIT_UPPER: offset = RTO_N; break;
case TRACK_BIT_LOWER: offset = RTO_S; break;
case TRACK_BIT_RIGHT: offset = RTO_E; break;
case TRACK_BIT_LEFT: offset = RTO_W; break;
}
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);
/**
* Draw ground sprite and track bits
* @param ti TileInfo
* @param track TrackBits to draw
*/
static void DrawTrackBits(TileInfo *ti, TrackBits track)
{
Status change: