summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-02-17 16:07:45 +0000
committerbjarni <bjarni@openttd.org>2007-02-17 16:07:45 +0000
commitf731d7ffc410e5075ebf16d1129f4318d151f89a (patch)
treec3c4e14fa79bd5448183efb13f208a487af436a0
parentea8eb50c0e45b185e75e1815558131e01ebb0612 (diff)
downloadopenttd-f731d7ffc410e5075ebf16d1129f4318d151f89a.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)
-rw-r--r--src/build_vehicle_gui.cpp4
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;