diff options
author | hackykid <hackykid@openttd.org> | 2005-07-17 20:09:02 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-07-17 20:09:02 +0000 |
commit | 1d11bbb34da6bb1cfd8d8351f61940c92027ed55 (patch) | |
tree | 2aa47a2f10516c02b42213645730108be6987d02 /pbs.h | |
parent | eabc48218413f5d3e9e26d3675e32055af8cfc61 (diff) | |
download | openttd-1d11bbb34da6bb1cfd8d8351f61940c92027ed55.tar.xz |
(svn r2625) - Fix: [pbs] Store the end of a train's reserved path explicitly. Prevents trains from unreserving eachothers paths in some cases.
- CodeChange: Use the TrackdirToTrack function instead of &7, and remove an unneeded variable.
Diffstat (limited to 'pbs.h')
-rw-r--r-- | pbs.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -56,11 +56,13 @@ void PBSClearTrack(TileIndex tile, Track track); * @param track The track to unreserve, valid values 0-5. */ -void PBSClearPath(TileIndex tile, Trackdir trackdir); +void PBSClearPath(TileIndex tile, Trackdir trackdir, TileIndex end_tile, Trackdir end_trackdir); /**< * Follows a planned(reserved) path, and unreserves the tracks. * @param tile The tile on which the path starts * @param trackdir The trackdirection in which the path starts + * @param end_tile The tile on which the path ends + * @param end_trackdir The trackdirection in which the path ends */ bool PBSIsPbsSignal(TileIndex tile, Trackdir trackdir); |