summaryrefslogtreecommitdiff
path: root/src/ground_vehicle.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-04-16 16:45:35 +0000
committerfrosch <frosch@openttd.org>2011-04-16 16:45:35 +0000
commit194a941a3740dd3d941d053712ea208ba331f5aa (patch)
treed438b72a036ba3bbf998274d37e5fb3a66d7c962 /src/ground_vehicle.hpp
parentaedd38255b2bc961d95a53cf784c3110711e05e3 (diff)
downloadopenttd-194a941a3740dd3d941d053712ea208ba331f5aa.tar.xz
(svn r22328) -Add: a flag to GroundVehicles to disable insertion and removal of automatic orders until the next real order is reached.
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r--src/ground_vehicle.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp
index 941ddca15..225ce0edb 100644
--- a/src/ground_vehicle.hpp
+++ b/src/ground_vehicle.hpp
@@ -50,8 +50,9 @@ struct GroundVehicleCache {
/** Ground vehicle flags. */
enum GroundVehicleFlags {
- GVF_GOINGUP_BIT = 0,
- GVF_GOINGDOWN_BIT = 1,
+ GVF_GOINGUP_BIT = 0, ///< Vehicle is currently going uphill. (Cached track information for acceleration)
+ GVF_GOINGDOWN_BIT = 1, ///< Vehicle is currently going downhill. (Cached track information for acceleration)
+ GVF_SUPPRESS_AUTOMATIC_ORDERS = 2, ///< Disable insertion and removal of automatic orders until the vehicle completes the real order.
};
/**