mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14350) -Fix (r13927): do not draw PBS reservation for NW and NE depots, it is drawn through depot walls
This commit is contained in:
parent
7ae255a553
commit
97150dcffd
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue