(svn r27209) -Add: Draw path reservation on the whole bridge, not only on the bridge heads.

This commit is contained in:
frosch
2015-03-28 14:04:06 +00:00
parent 5503af7bfa
commit bba85a6e01
3 changed files with 26 additions and 4 deletions

View File

@@ -85,7 +85,11 @@ bool TryReserveRailTrack(TileIndex tile, Track t, bool trigger_stations)
if (_settings_client.gui.show_track_reservation) {
/* show the reserved rail if needed */
MarkTileDirtyByTile(tile);
if (IsBridgeTile(tile)) {
MarkBridgeDirty(tile);
} else {
MarkTileDirtyByTile(tile);
}
}
switch (GetTileType(tile)) {
@@ -141,7 +145,11 @@ void UnreserveRailTrack(TileIndex tile, Track t)
assert((GetTileTrackStatus(tile, TRANSPORT_RAIL, 0) & TrackToTrackBits(t)) != 0);
if (_settings_client.gui.show_track_reservation) {
MarkTileDirtyByTile(tile);
if (IsBridgeTile(tile)) {
MarkBridgeDirty(tile);
} else {
MarkTileDirtyByTile(tile);
}
}
switch (GetTileType(tile)) {