summaryrefslogtreecommitdiff
path: root/src
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
commit8175371eee727be2dec18b81ce74cef36f2bf01d (patch)
treec3c4e14fa79bd5448183efb13f208a487af436a0 /src
parent69bacedab977ed68060068a97087743e0fc64cc3 (diff)
downloadopenttd-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.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;