Properly compile kln89 code without reliance on ATCDCL.
This commit is contained in:
parent
ab09078767
commit
314f3c5718
2 changed files with 19 additions and 2 deletions
|
@ -52,7 +52,8 @@
|
|||
#if !ENABLE_ATCDCL
|
||||
|
||||
class SGPath;
|
||||
struct ATCData;
|
||||
|
||||
|
||||
|
||||
// Possible types of ATC type that the radios may be tuned to.
|
||||
// INVALID implies not tuned in to anything.
|
||||
|
@ -67,6 +68,18 @@ enum atc_type {
|
|||
INVALID /* must be last element; see ATC_NUM_TYPES */
|
||||
};
|
||||
|
||||
struct ATCData {
|
||||
ATCData() : type(INVALID), cart(0, 0, 0), freq(0), range(0) {}
|
||||
atc_type type;
|
||||
SGGeod geod;
|
||||
SGVec3d cart;
|
||||
unsigned short int freq;
|
||||
unsigned short int range;
|
||||
std::string ident;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
|
||||
// A list of ATC stations
|
||||
typedef std::list < ATCData > comm_list_type;
|
||||
|
|
|
@ -26,7 +26,11 @@
|
|||
#endif
|
||||
|
||||
#include "kln89_page_apt.hxx"
|
||||
#include <ATCDCL/commlist.hxx>
|
||||
#if ENABLE_ATCDCL
|
||||
# include <ATCDCL/commlist.hxx>
|
||||
#else
|
||||
#include <ATC/atcutils.hxx>
|
||||
#endif
|
||||
#include <Main/globals.hxx>
|
||||
#include <Airports/runways.hxx>
|
||||
#include <Airports/simple.hxx>
|
||||
|
|
Loading…
Reference in a new issue