summaryrefslogtreecommitdiff
path: root/pbs.h
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-07-22 08:40:19 +0000
committerhackykid <hackykid@openttd.org>2005-07-22 08:40:19 +0000
commitaed6f08640c3865ebb48bc6bd151d747262ec9f0 (patch)
treea3caf79bf281e825af72f9b3c43114b86409cb9a /pbs.h
parent54cbd0182548d7bf1856790ac871585a16806824 (diff)
downloadopenttd-aed6f08640c3865ebb48bc6bd151d747262ec9f0.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.h')
-rw-r--r--pbs.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/pbs.h b/pbs.h
index 2cac9498e..9b9aea160 100644
--- a/pbs.h
+++ b/pbs.h
@@ -72,12 +72,13 @@ bool PBSIsPbsSignal(TileIndex tile, Trackdir trackdir);
* @return True when there are pbs signals on that tile
*/
-bool PBSIsPbsDepot(uint tile);
+bool PBSIsPbsSegment(uint tile, Trackdir trackdir);
/**<
- * Checks if a depot is inside a pbs block.
- * Tis means that the block it is in needs to have at least 1 signal, and that all signals in it need to be pbs signals.
- * @param tile The depot tile to check
- * @return True when the depot is inside a pbs block.
+ * Checks if a signal/depot leads to a pbs block.
+ * This means that the block needs to have at least 1 signal, and that all signals in it need to be pbs signals.
+ * @param tile The tile to check
+ * @param trackdir The direction in which to check
+ * @return True when the depot is inside a pbs block
*/
#endif