Add train cached_curve_speed_mod to VENC, cache checks and debug window

This commit is contained in:
Jonathan G Rennison
2021-11-02 22:37:34 +00:00
parent 3ef1a0943b
commit 3cff5e53e4
5 changed files with 10 additions and 4 deletions

View File

@@ -110,8 +110,8 @@ struct TrainCache {
int cached_max_curve_speed; ///< max consist speed limited by curves
/* cached values, recalculated on load and each time a vehicle is added to/removed from the consist. */
int cached_curve_speed_mod; ///< curve speed modifier of the entire train
TrainCacheFlags cached_tflags;///< train cached flags
int cached_curve_speed_mod; ///< curve speed modifier of the entire train
uint8 cached_num_engines; ///< total number of engines, including rear ends of multiheaded engines
uint16 cached_centre_mass; ///< Cached position of the centre of mass, from the front
uint16 cached_veh_weight; ///< Cached individual vehicle weight