diff options
author | smatz <smatz@openttd.org> | 2008-09-16 22:56:43 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-16 22:56:43 +0000 |
commit | 6dd1163594030a90d9ca79c9d2829d1daa545842 (patch) | |
tree | 511d5332e1ef3a6193566c55cd1946c1652868fa /src | |
parent | 74892fbdf63c5026f3c3dbdf0db13fab42068876 (diff) | |
download | openttd-6dd1163594030a90d9ca79c9d2829d1daa545842.tar.xz |
(svn r14350) -Fix (r13927): do not draw PBS reservation for NW and NE depots, it is drawn through depot walls
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 12af30861..0b4ddb197 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1988,7 +1988,8 @@ default_waypoint: DrawGroundSprite(image, PAL_NONE); /* PBS debugging, draw reserved tracks darker */ - if (_game_mode != GM_MENU && _settings_client.gui.show_track_reservation && GetDepotWaypointReservation(ti->tile)) { + if (_game_mode != GM_MENU && _settings_client.gui.show_track_reservation && GetDepotWaypointReservation(ti->tile) && + (!IsRailDepot(ti->tile) || GetRailDepotDirection(ti->tile) == DIAGDIR_SW || GetRailDepotDirection(ti->tile) == DIAGDIR_SE)) { DrawGroundSprite(GetWaypointAxis(ti->tile) == AXIS_X ? rti->base_sprites.single_y : rti->base_sprites.single_x, PALETTE_CRASH); } |