diff options
author | frosch <frosch@openttd.org> | 2011-11-01 00:21:08 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-01 00:21:08 +0000 |
commit | 72cd855978bf45fd444eae72551a12e13a35b0c8 (patch) | |
tree | b7f4b3cc07022ba32160f5e67f4cb5a527266d12 /src/vehicle_base.h | |
parent | c366e0d45f87f9ba625ed73cbf5bff61d8483c5c (diff) | |
download | openttd-72cd855978bf45fd444eae72551a12e13a35b0c8.tar.xz |
(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 5fc2500eb..4bfe59323 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -338,6 +338,8 @@ public: */ virtual bool IsPrimaryVehicle() const { return false; } + const Engine *GetEngine() const; + /** * Gets the sprite to show for the given direction * @param direction the direction the vehicle is facing |