From 081bae03d92ca9598a61fa801d51c9a67e0442b6 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 4 Nov 2005 12:58:18 +0000 Subject: (svn r3132) -NewGRF: support positioning of rail vehicle visual effects. --- vehicle.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vehicle.h') 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 -- cgit v1.2.3-54-g00ecf