diff options
author | tron <tron@openttd.org> | 2007-02-15 20:16:33 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-15 20:16:33 +0000 |
commit | 5231f5669dcb1f4caa641696a16c8517239a5303 (patch) | |
tree | 5a513b927712a1ad28c59a6e84193e9ca2bbc851 /src/build_vehicle_gui.cpp | |
parent | 8675b8ec7d36592777c23cfcfe273fa17c66afef (diff) | |
download | openttd-5231f5669dcb1f4caa641696a16c8517239a5303.tar.xz |
(svn r8747) -Fix
-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-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 61f9f7a58..283667f30 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -984,8 +984,8 @@ void ShowBuildVehicleWindow(TileIndex tile, byte type) ResizeWindow(w, 27, 0); break; case VEH_Aircraft: - AcceptPlanes acc_planes = (tile == 0) ? ALL : GetAirport(GetStationByTile(tile)->airport_type)->acc_planes; - bv->filter.acc_planes = acc_planes; + bv->filter.flags = + tile == 0 ? AirportFTAClass::ALL : GetAirport(GetStationByTile(tile)->airport_type)->flags; ResizeWindow(w, 12, 0); break; } |