summaryrefslogtreecommitdiff
path: root/pbs.h
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-07-17 20:09:02 +0000
committerhackykid <hackykid@openttd.org>2005-07-17 20:09:02 +0000
commit552aa1b4dc172a9d769e3c94ff40c99743f428b0 (patch)
tree2aa47a2f10516c02b42213645730108be6987d02 /pbs.h
parent09195e0bda3bcec67f306f4e12edde50db90e602 (diff)
downloadopenttd-552aa1b4dc172a9d769e3c94ff40c99743f428b0.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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbs.h b/pbs.h
index 398bd73d9..013802ee6 100644
--- a/pbs.h
+++ b/pbs.h
@@ -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);