diff options
author | terkhen <terkhen@openttd.org> | 2010-12-14 21:33:53 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-12-14 21:33:53 +0000 |
commit | 48b7916458de4b2cdbc226a4a6ab078db4c77e73 (patch) | |
tree | c3a49ca7a91890042ca56765574bc40a54c15f96 /src/roadveh.h | |
parent | a93944e765776c6e9a2bd556457cd93748068da6 (diff) | |
download | openttd-48b7916458de4b2cdbc226a4a6ab078db4c77e73.tar.xz |
(svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index a76d19f5f..72c789fd1 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -83,18 +83,10 @@ enum RoadVehicleSubType { void RoadVehUpdateCache(RoadVehicle *v); -/** Cached oftenly queried (NewGRF) values */ -struct RoadVehicleCache { - uint16 cached_total_length; ///< Length of the whole train, valid only for first engine. - byte cached_veh_length; ///< length of this vehicle in units of 1/8 of normal length, cached because this can be set by a callback - EngineID first_engine; ///< Cached EngineID of the front vehicle. INVALID_ENGINE for the front vehicle itself. -}; - /** * Buses, trucks and trams belong to this class. */ struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> { - RoadVehicleCache rcache; ///< Cache of often used calculated values byte state; ///< @see RoadVehicleStates byte frame; uint16 blocked_ctr; |