summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-04 12:58:18 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-04 12:58:18 +0000
commit8ece7ab107a2dc37bfaedc6d0b77a2982b7ae674 (patch)
tree4ca32a350bf0f792cc38d44b1433de07617f949e /vehicle.h
parent481336895b3d83e23ec30ba96b3e6e145205c5b7 (diff)
downloadopenttd-8ece7ab107a2dc37bfaedc6d0b77a2982b7ae674.tar.xz
(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vehicle.h b/vehicle.h
index e45cebe15..9954216ff 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -62,6 +62,14 @@ typedef struct VehicleRail {
// cached values, recalculated when the cargo on a train changes (in addition to the conditions above)
uint16 cached_weight; // total weight of the consist.
uint16 cached_veh_weight; // weight of the vehicle.
+ /**
+ * Position/type of visual effect.
+ * bit 0 - 3 = position of effect relative to vehicle. (0 = front, 8 = centre, 15 = rear)
+ * bit 4 - 5 = type of effect. (0 = default for engine class, 1 = steam, 2 = diesel, 3 = electric)
+ * bit 6 = disable visual effect.
+ * bit 7 = disable powered wagons.
+ */
+ byte cached_vis_effect;
// NOSAVE: for wagon override - id of the first engine in train
// 0xffff == not in train