1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

(svn r13956) -Add [YAPP]: Function for getting the train holding a reserved path. (michi_cc)

This commit is contained in:
rubidium
2008-08-02 22:54:53 +00:00
parent bd0a420744
commit bce6f7b41c
2 changed files with 82 additions and 18 deletions

View File

@@ -31,6 +31,8 @@ PBSTileInfo FollowTrainReservation(const Vehicle *v);
bool IsSafeWaitingPosition(const Vehicle *v, TileIndex tile, Trackdir trackdir, bool include_line_end, bool forbid_90deg = false);
bool IsWaitingPositionFree(const Vehicle *v, TileIndex tile, Trackdir trackdir, bool forbid_90deg = false);
Vehicle *GetTrainForReservation(TileIndex tile, Track track);
/**
* Check whether some of tracks is reserved on a tile.
*