diff options
author | terkhen <terkhen@openttd.org> | 2010-12-14 21:31:00 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-12-14 21:31:00 +0000 |
commit | a4a92741778047893eb05dd9e98d0f153d41e2eb (patch) | |
tree | 6ce748e8d315f39770cceb6200ea13f2d9463005 /src/vehicle_base.h | |
parent | 12c86a139193ab88edb998844c2685b569430a57 (diff) | |
download | openttd-a4a92741778047893eb05dd9e98d0f153d41e2eb.tar.xz |
(svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index d81713d74..381a5e3f6 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -98,6 +98,7 @@ extern VehiclePool _vehicle_pool; /* Some declarations of functions, so we can make them friendly */ struct SaveLoad; +struct GroundVehicleCache; extern const SaveLoad *GetVehicleDescription(VehicleType vt); struct LoadgameState; extern bool LoadOldVehicle(LoadgameState *ls, int num); @@ -239,6 +240,9 @@ public: void BeginLoading(); void LeaveStation(); + GroundVehicleCache *GetGroundVehicleCache(); + const GroundVehicleCache *GetGroundVehicleCache() const; + /** * Handle the loading of the vehicle; when not it skips through dummy * orders and does nothing in all other cases. |