From 5790293af6404ab5eb941ba9f67141631ecf621d Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 12 Apr 2009 14:11:14 +0000 Subject: (svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station. --- src/train.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/train.h') diff --git a/src/train.h b/src/train.h index 02125efc9..750dbe3f1 100644 --- a/src/train.h +++ b/src/train.h @@ -300,6 +300,8 @@ void CheckTrainsLengths(); void FreeTrainTrackReservation(const Vehicle *v, TileIndex origin = INVALID_TILE, Trackdir orig_td = INVALID_TRACKDIR); bool TryPathReserve(Vehicle *v, bool mark_as_stuck = false, bool first_tile_okay = false); +int GetTrainStopLocation(StationID station_id, TileIndex tile, const Vehicle *v, int *station_ahead, int *station_length); + /** * This class 'wraps' Vehicle; you do not actually instantiate this class. * You create a Vehicle using AllocateVehicle, so it is added to the pool -- cgit v1.2.3-54-g00ecf