(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed
authorsmatz
Wed, 20 Aug 2008 15:21:03 +0000
changeset 9952 e003ab3361ad
parent 9951 fdd4c5076b14
child 9953 42938fdeb0dc
(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed
src/pbs.cpp
--- a/src/pbs.cpp	Wed Aug 20 13:32:57 2008 +0000
+++ b/src/pbs.cpp	Wed Aug 20 15:21:03 2008 +0000
@@ -92,7 +92,6 @@
 			if (IsRailWaypoint(tile) || IsRailDepot(tile)) {
 				if (!GetDepotWaypointReservation(tile)) {
 					SetDepotWaypointReservation(tile, true);
-					MarkTileDirtyByTile(tile);
 					return true;
 				}
 			}
@@ -110,7 +109,6 @@
 		case MP_STATION:
 			if (IsRailwayStation(tile) && !GetRailwayStationReservation(tile)) {
 				SetRailwayStationReservation(tile, true);
-				MarkTileDirtyByTile(tile);
 				return true;
 			}
 			break;