diff options
author | smatz <smatz@openttd.org> | 2009-07-13 16:37:27 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-13 16:37:27 +0000 |
commit | b6960e4e17c9d9464041d8c04907a5e1caf5c609 (patch) | |
tree | 9a5101e644b98bd50bdb6d5f7adc7bbe17aee09a /src/vehicle.cpp | |
parent | 868c21cbcc3b04e4e6649417ff94763a82c7d8b5 (diff) | |
download | openttd-b6960e4e17c9d9464041d8c04907a5e1caf5c609.tar.xz |
(svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index df1059391..95c6c8fff 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -478,7 +478,7 @@ uint CountVehiclesInChain(const Vehicle *v) bool Vehicle::IsEngineCountable() const { switch (this->type) { - case VEH_AIRCRAFT: return IsNormalAircraft(this); // don't count plane shadows and helicopter rotors + case VEH_AIRCRAFT: return Aircraft::From(this)->IsNormalAircraft(); // don't count plane shadows and helicopter rotors case VEH_TRAIN: return !Train::From(this)->IsArticulatedPart() && // tenders and other articulated parts !Train::From(this)->IsRearDualheaded(); // rear parts of multiheaded engines |