diff options
author | bjarni <bjarni@openttd.org> | 2007-02-17 16:07:45 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-02-17 16:07:45 +0000 |
commit | 8175371eee727be2dec18b81ce74cef36f2bf01d (patch) | |
tree | c3c4e14fa79bd5448183efb13f208a487af436a0 /src | |
parent | 69bacedab977ed68060068a97087743e0fc64cc3 (diff) | |
download | openttd-8175371eee727be2dec18b81ce74cef36f2bf01d.tar.xz |
(svn r8783) -Fix r8771: aircraft vehicle subtype and aircraft engine subtype aren't the same (even though they both tell if it's a plane or helicopter)
Diffstat (limited to 'src')
-rw-r--r-- | src/build_vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index c695108a9..f8d802c33 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -695,11 +695,11 @@ static void GenerateBuildAircraftList(Window *w) const AircraftVehicleInfo *avi = AircraftVehInfo(eid); switch (bv->filter.flags & ~AirportFTAClass::SHORT_STRIP /* we don't care about the length of the runway here */) { case AirportFTAClass::HELICOPTERS: - if (avi->subtype != AIR_HELICOPTER) continue; + if (avi->subtype != AIR_HELI) continue; break; case AirportFTAClass::AIRPLANES: - if (avi->subtype != AIR_AIRCRAFT) continue; + if (!(avi->subtype & AIR_CTOL)) continue; break; case AirportFTAClass::ALL: break; |