(svn r8747) -Fix

-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
This commit is contained in:
tron
2007-02-15 20:16:33 +00:00
parent ab08096aab
commit 16df378623
6 changed files with 30 additions and 47 deletions

View File

@@ -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;
}