summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-03-03 20:56:30 +0000
committerglx <glx@openttd.org>2008-03-03 20:56:30 +0000
commitb64f637c720add4799c38c62b82c2858cdae9e0a (patch)
treedb93eac119a52cc01a0e4e720f4e99b3b98e4cc2 /src/vehicle_base.h
parentcf0e6d4cb48b733b1f6ca8819c05638218899f76 (diff)
downloadopenttd-b64f637c720add4799c38c62b82c2858cdae9e0a.tar.xz
(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 3b5464a9d..8bcaa2b47 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -118,7 +118,7 @@ struct VehicleRail {
const struct SpriteGroup *cached_override;
};
-enum {
+enum VehicleRailFlags {
VRF_REVERSING = 0,
/* used to calculate if train is going up or down */
@@ -136,6 +136,9 @@ enum {
/* used to mark that electric train engine is allowed to run on normal rail */
VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL = 6,
+
+ /* used for vehicle var 0xFE bit 8 (toggled each time the train is reversed) */
+ VRF_TOGGLE_REVERSE = 7,
};
struct VehicleAir {