summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-07 18:19:53 +0000
committerrubidium <rubidium@openttd.org>2009-03-07 18:19:53 +0000
commitaccb79049e386df44bbdb360df5450a01fd3370e (patch)
tree212e6face18faed611eadf98deae9104b9c6fd73 /src/station_base.h
parent0d2d5565a60e6d5d67e0ab5ba5af17477b92a321 (diff)
downloadopenttd-accb79049e386df44bbdb360df5450a01fd3370e.tar.xz
(svn r15635) -Fix [FS#2707]: don't allow more than 64 road vehicles to reserve a slot at a single road stop. 255 + 1 gives trouble, but 64 is even more than the roadstop would be able to handle within the slot timeout time.
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station_base.h b/src/station_base.h
index 2859096da..97477324d 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -52,6 +52,7 @@ struct RoadStop : PoolItem<RoadStop, RoadStopID, &_RoadStop_pool> {
static const int cDebugCtorLevel = 5; ///< Debug level on which Contructor / Destructor messages are printed
static const uint LIMIT = 16; ///< The maximum amount of roadstops that are allowed at a single station
static const uint MAX_BAY_COUNT = 2; ///< The maximum number of loading bays
+ static const uint MAX_VEHICLES = 64; ///< The maximum number of vehicles that can allocate a slot to this roadstop
TileIndex xy; ///< Position on the map
byte status; ///< Current status of the Stop. Like which spot is taken. Access using *Bay and *Busy functions.