#include <simgear/debug/logstream.hxx>
#include "tower.hxx"
-#include "ATCdisplay.hxx"
#include "ATCmgr.hxx"
#include "ATCutils.hxx"
#include "ATCDialog.hxx"
At the moment planes in the lists are not guaranteed to always have a sensible ETA - it should be set as part of AddList functions, and lists should only be accessed this way. (FAIRLY MAJOR).
*******************************************/
-FGTower::FGTower() {
+FGTower::FGTower() :
+ separateGround(true),
+ ground(0)
+{
ATCmgr = globals->get_ATC_mgr();
_type = TOWER;
}
trns += ConvertRwyNumToSpokenString(activeRwy);
if(_display) {
- //globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
pending_transmission = trns;
Transmit();
} else {
string trns = t->plane.callsign;
trns += " hold position";
if(_display) {
- //globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
pending_transmission = trns;
Transmit();
}
t->clearedToLand = false;
}
if(_display && disp) {
- //globals->get_ATC_display()->RegisterSingleMessage(trns);
pending_transmission = trns;
Transmit();
}
}
}
if(_display) {
- //globals->get_ATC_display()->RegisterSingleMessage(trns);
pending_transmission = trns;
Transmit();
}
}
//cout << "trns = " << trns << '\n';
if(_display) {
- //globals->get_ATC_display()->RegisterSingleMessage(trns);
pending_transmission = trns;
Transmit();
}
timeSinceLastDeparture = 0.0;
}
if(_display) {
- //globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
pending_transmission = trns;
Transmit();
}
//break;
//}
//}
- if ( mes != "" ) return mes;
+ if ( mes[0] ) return mes;
else return "No transmission found";
}