diff options
author | tron <tron@openttd.org> | 2005-07-21 22:15:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-21 22:15:02 +0000 |
commit | 0762aa9ec950a7c7966b1706daa7a032f5de790a (patch) | |
tree | 0e2d2d052ab58755549ef42d694f58679a4c496c /airport.h | |
parent | a446294e7cdbcf71ffe2052a4a9954dc46a64133 (diff) | |
download | openttd-0762aa9ec950a7c7966b1706daa7a032f5de790a.tar.xz |
(svn r2669) Shuffle some more stuff around to reduce dependencies
Diffstat (limited to 'airport.h')
-rw-r--r-- | airport.h | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -2,7 +2,6 @@ #define AIRPORT_H #include "airport_movement.h" -#include "variables.h" enum {MAX_TERMINALS = 6}; enum {MAX_HELIPADS = 2}; @@ -54,15 +53,6 @@ const AirportFTAClass* GetAirport(const byte airport_type); * Bit 0 means the small airport is buildable, etc. * @todo set availability of airports by year, instead of airplane */ -static inline uint32 GetValidAirports(void) -{ - uint32 bytemask = _avail_aircraft; /// sets the first 3 bytes, 0 - 2, @see AdjustAvailAircraft() - - // 1980-1-1 is --> 21915 - // 1990-1-1 is --> 25568 - if (_date >= 21915) {SETBIT(bytemask, 3);} // metropilitan airport 1980 - if (_date >= 25568) {SETBIT(bytemask, 4);} // international airport 1990 - return bytemask; -} +uint32 GetValidAirports(void); #endif /* AIRPORT_H */ |