diff options
author | peter1138 <peter1138@openttd.org> | 2013-01-11 11:54:12 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2013-01-11 11:54:12 +0000 |
commit | fed430b45d7f66c3f96057ac8830a09de6d78c79 (patch) | |
tree | 22f87ecaf2491279328f863ad617b6ee4f252271 | |
parent | c00a400cc7e7626a430ed65d29a47c02a7a14eaa (diff) | |
download | openttd-fed430b45d7f66c3f96057ac8830a09de6d78c79.tar.xz |
(svn r24906) -Fix (24905): Don't trigger on path reservation for waypoints.
-rw-r--r-- | src/pbs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |