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 | 97150dcffd5c5dba23d9d878431e6191e7d7ec1f (patch) | |
tree | 511d5332e1ef3a6193566c55cd1946c1652868fa | |
parent | 7ae255a553aa6c970bc2b68abbe395c42638aaca (diff) | |
download | openttd-97150dcffd5c5dba23d9d878431e6191e7d7ec1f.tar.xz |
(svn r14350) -Fix (r13927): do not draw PBS reservation for NW and NE depots, it is drawn through depot walls
-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); } |