diff options
author | rubidium <rubidium@openttd.org> | 2010-11-18 14:03:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-18 14:03:12 +0000 |
commit | 79c47ef8b06e98e551c28c768541ba62851d6888 (patch) | |
tree | b13a5f83bc79512ce522393aa414534f4e8a3786 /src/vehicle_base.h | |
parent | 5a503d505b8e1df6dea8ad78da6003c269ec397c (diff) | |
download | openttd-79c47ef8b06e98e551c28c768541ba62851d6888.tar.xz |
(svn r21232) -Codechange: Move cached_vis_effect from the TrainCache to the VehicleCache (Hirundo)
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 65d3020b5..1cc503e17 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -67,6 +67,14 @@ struct NewGRFCache { /** Cached often queried values common to all vehicles. */ struct VehicleCache { uint16 cached_max_speed; ///< Maximum speed of the consist (minimum of the max speed of all vehicles in the consist). + /** + * 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 (trains only). + */ + byte cached_vis_effect; }; /** A vehicle pool for a little over 1 million vehicles. */ |