From fed430b45d7f66c3f96057ac8830a09de6d78c79 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 11 Jan 2013 11:54:12 +0000 Subject: (svn r24906) -Fix (24905): Don't trigger on path reservation for waypoints. --- src/pbs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pbs.cpp b/src/pbs.cpp index 68069c0f9..55569c059 100644 --- a/src/pbs.cpp +++ b/src/pbs.cpp @@ -110,7 +110,7 @@ bool TryReserveRailTrack(TileIndex tile, Track t, bool trigger_stations) case MP_STATION: if (HasStationRail(tile) && !HasStationReservation(tile)) { SetRailStationReservation(tile, true); - if (trigger_stations) TriggerStationRandomisation(NULL, tile, SRT_PATH_RESERVATION); + if (trigger_stations && IsRailStation(tile)) TriggerStationRandomisation(NULL, tile, SRT_PATH_RESERVATION); MarkTileDirtyByTile(tile); // some GRFs need redraw after reserving track return true; } -- cgit v1.2.3-70-g09d2