diff options
author | rubidium <rubidium@openttd.org> | 2011-01-09 20:54:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-09 20:54:56 +0000 |
commit | 4eb4aad54fdffc5997a42bdfc5ad49c93a0e77e5 (patch) | |
tree | 31831360aa45fe2bad81a76b6691e803cad738eb /src | |
parent | 57c6133c3b657084f195528b2429f1de3c994896 (diff) | |
download | openttd-4eb4aad54fdffc5997a42bdfc5ad49c93a0e77e5.tar.xz |
(svn r21765) -Fix [FS#4369]: PBS reservation was not shown on road crossings with NewGRF railtypes (andythenorth)
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 1be419a99..c02706e54 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1240,7 +1240,10 @@ static void DrawTile_Road(TileInfo *ti) DrawGroundSprite(road, pal); SpriteID rail = GetCustomRailSprite(rti, ti->tile, RTSG_CROSSING) + axis; - DrawGroundSprite(rail, PAL_NONE); + /* Draw tracks, but draw PBS reserved tracks darker. */ + pal = (_game_mode != GM_MENU && _settings_client.gui.show_track_reservation && HasCrossingReservation(ti->tile)) ? PALETTE_CRASH : PAL_NONE; + DrawGroundSprite(rail, pal); + DrawRailTileSeq(ti, &_crossing_layout, TO_CATENARY, rail, 0, PAL_NONE); } else { SpriteID image = rti->base_sprites.crossing; |