diff options
author | hackykid <hackykid@openttd.org> | 2005-07-22 08:40:19 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-07-22 08:40:19 +0000 |
commit | aa29ee6eda861ceac08d226a6d7e1de5dae74749 (patch) | |
tree | a3caf79bf281e825af72f9b3c43114b86409cb9a /pbs.c | |
parent | 559babcdc96d5e2de5e964c9d9b6109e4cfbcffc (diff) | |
download | openttd-aa29ee6eda861ceac08d226a6d7e1de5dae74749.tar.xz |
(svn r2674) - CodeChange: [pbs] Generalise the PSBISPbsDepot function so it can check if an arbitrary junction is a pbs junction. Preparations for making pbs more safe.
Diffstat (limited to 'pbs.c')
-rw-r--r-- | pbs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -269,11 +269,11 @@ static bool SetSignalsEnumProcPBS(uint tile, SetSignalsDataPbs *ssd, int trackdi return false; } -bool PBSIsPbsDepot(uint tile) +bool PBSIsPbsSegment(uint tile, Trackdir trackdir) { SetSignalsDataPbs ssd; - bool result = false; - DiagDirection direction = GetDepotDirection(tile,TRANSPORT_RAIL); + bool result = PBSIsPbsSignal(tile, trackdir); + DiagDirection direction = TrackdirToExitdir(trackdir);//GetDepotDirection(tile,TRANSPORT_RAIL); int i; ssd.cur = 0; |