(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.
This commit is contained in:
hackykid
2005-07-17 20:09:02 +00:00
parent eabc482184
commit 1d11bbb34d
6 changed files with 56 additions and 28 deletions

4
pbs.h
View File

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