Mercurial > hg > openttd
changeset 18738:84b6425159f5 draft
(svn r23586) -Fix: Draw PBS reservation also for bridges with railtype overlays.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 17 Dec 2011 23:22:27 +0000 |
parents | ab47b6f903c5 |
children | 35dbea1cf5d2 |
files | src/tunnelbridge_cmd.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1228,13 +1228,17 @@ /* 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);