1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed

This commit is contained in:
smatz
2008-08-20 15:21:03 +00:00
parent 578833ef01
commit 999994bcf3

View File

@@ -92,7 +92,6 @@ bool TryReserveRailTrack(TileIndex tile, Track t)
if (IsRailWaypoint(tile) || IsRailDepot(tile)) {
if (!GetDepotWaypointReservation(tile)) {
SetDepotWaypointReservation(tile, true);
MarkTileDirtyByTile(tile);
return true;
}
}
@@ -110,7 +109,6 @@ bool TryReserveRailTrack(TileIndex tile, Track t)
case MP_STATION:
if (IsRailwayStation(tile) && !GetRailwayStationReservation(tile)) {
SetRailwayStationReservation(tile, true);
MarkTileDirtyByTile(tile);
return true;
}
break;