FGGround::FGGround() {
ATCmgr = globals->get_ATC_mgr();
_type = GROUND;
- display = false;
networkLoadOK = false;
ground_traffic.erase(ground_traffic.begin(), ground_traffic.end());
ground_traffic_itr = ground_traffic.begin();
FGGround::FGGround(string id) {
ATCmgr = globals->get_ATC_mgr();
- display = false;
networkLoadOK = false;
ground_traffic.erase(ground_traffic.begin(), ground_traffic.end());
ground_traffic_itr = ground_traffic.begin();
}
void FGGround::Init() {
- display = false;
untowered = false;
// Figure out which is the active runway - TODO - it would be better to have ground call tower
trns += " taxi holding point runway "; // TODO - add the holding point name
// eg " taxi holding point G2 runway "
trns += ConvertRwyNumToSpokenString(activeRwy);
- if(display) {
+ if(_display) {
globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
}
g->planePtr->RegisterTransmission(1); // cleared to taxi
char buf[10];
sprintf(buf, "%.2f", f);
trns += buf;
- if(display) {
+ if(_display) {
globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
}
g->planePtr->RegisterTransmission(2); // contact tower