(svn r8767) -Fix

-Codechange: Do not hardcode the catchment radius of airports, but hold the information in AirportFTAClass
-Fix (r979): The default AI tested possible airport locations with a fixed catchment radius instead of the radius of the to be built airport
This commit is contained in:
tron
2007-02-17 07:45:18 +00:00
parent ee0739561d
commit 8aacd2585d
6 changed files with 36 additions and 66 deletions

View File

@@ -139,7 +139,8 @@ typedef struct AirportFTAClass {
byte nof_depots,
uint size_x,
uint size_y,
byte delta_z
byte delta_z,
byte catchment
);
~AirportFTAClass();
@@ -162,6 +163,7 @@ typedef struct AirportFTAClass {
byte size_x;
byte size_y;
byte delta_z; // Z adjustment for helicopter pads
byte catchment;
} AirportFTAClass;
DECLARE_ENUM_AS_BIT_SET(AirportFTAClass::Flags)