(svn r24906) -Fix (24905): Don't trigger on path reservation for waypoints.

This commit is contained in:
peter1138 2013-01-11 11:54:12 +00:00
parent c00a400cc7
commit fed430b45d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}