summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-08-20 15:21:03 +0000
committersmatz <smatz@openttd.org>2008-08-20 15:21:03 +0000
commit999994bcf34375588e51ed49bc5a0757af97818d (patch)
treec069c17e0bb95567eefed62aacce104b009b336e
parent578833ef01d718c61929c5bf975f719dff062c11 (diff)
downloadopenttd-999994bcf34375588e51ed49bc5a0757af97818d.tar.xz
(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed
-rw-r--r--src/pbs.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pbs.cpp b/src/pbs.cpp
index bf3913bc4..d321f30c7 100644
--- a/src/pbs.cpp
+++ b/src/pbs.cpp
@@ -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;