summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-08 08:52:47 +0000
committerfrosch <frosch@openttd.org>2010-08-08 08:52:47 +0000
commit5f874b90f92c3f7f6578c5f41eef4dce0107f9e3 (patch)
tree6a71e87502dd81767464648aadfd2786c87bddc9 /src
parentef50a89ca59668d34bb84e1f854475c74c7826d3 (diff)
downloadopenttd-5f874b90f92c3f7f6578c5f41eef4dce0107f9e3.tar.xz
(svn r20408) -Fix [FS#4013]: PBS reservations were always displayed on halftile foundations if the railtype uses overlays.
Diffstat (limited to 'src')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index f749d5a6b..4f61dfd65 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1998,7 +1998,7 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn
}
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);
}
}