summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-12-17 23:22:27 +0000
committerfrosch <frosch@openttd.org>2011-12-17 23:22:27 +0000
commit1bb9639862f44dba3e74db1d0310dbfeef5ea41f (patch)
tree1d7f7bc690711f9829ee0b5bfd0bb68147c1c3e1 /src
parent50b63c587087733b2d3b059e10a10eba748c0166 (diff)
downloadopenttd-1bb9639862f44dba3e74db1d0310dbfeef5ea41f.tar.xz
(svn r23586) -Fix: Draw PBS reservation also for bridges with railtype overlays.
Diffstat (limited to 'src')
-rw-r--r--src/tunnelbridge_cmd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 0a7932327..24dbcff6b 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -1228,13 +1228,17 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
/* Don't fallback to non-overlay sprite -- the spec states that
* if an overlay is present then the bridge surface must be
* present. */
- } else if (_game_mode != GM_MENU &&_settings_client.gui.show_track_reservation && HasTunnelBridgeReservation(ti->tile)) {
+ }
+
+ /* PBS debugging, draw reserved tracks darker */
+ if (_game_mode != GM_MENU &&_settings_client.gui.show_track_reservation && HasTunnelBridgeReservation(ti->tile)) {
if (HasBridgeFlatRamp(ti->tileh, DiagDirToAxis(tunnelbridge_direction))) {
AddSortableSpriteToDraw(DiagDirToAxis(tunnelbridge_direction) == AXIS_X ? rti->base_sprites.single_x : rti->base_sprites.single_y, PALETTE_CRASH, ti->x, ti->y, 16, 16, 0, ti->z + 8);
} else {
AddSortableSpriteToDraw(rti->base_sprites.single_sloped + tunnelbridge_direction, PALETTE_CRASH, ti->x, ti->y, 16, 16, 8, ti->z);
}
}
+
EndSpriteCombine();
if (HasCatenaryDrawn(GetRailType(ti->tile))) {
DrawCatenary(ti);