mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed
This commit is contained in:
parent
578833ef01
commit
999994bcf3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue