Re-commit the changes that I inadvertantly committed as cvsguest
This commit is contained in:
parent
e07b153321
commit
e77a6e4d3d
2 changed files with 11 additions and 6 deletions
|
@ -76,7 +76,7 @@ public:
|
|||
|
||||
// Register a single message for display after a delay of delay seconds
|
||||
// Will automatically stop displaying after a suitable interval.
|
||||
void RegisterSingleMessage(string msg, double delay); // OK - I know passing a string in and out is probably not good but it will have to do for now.
|
||||
void RegisterSingleMessage(string msg, double delay = 0.0); // OK - I know passing a string in and out is probably not good but it will have to do for now.
|
||||
|
||||
// For now we will assume only one repeating message at once
|
||||
// This is not really robust
|
||||
|
|
|
@ -102,6 +102,9 @@ void FGATCMgr::init() {
|
|||
current_commlist = new FGCommList;
|
||||
SGPath p_comm( globals->get_fg_root() );
|
||||
current_commlist->init( p_comm );
|
||||
|
||||
// Set the user callsign - bit of a hack at the moment - eventually should be read from aircraft file and user-over-rideable
|
||||
fgSetString("/sim/user/callsign", "Golf Foxtrot Sierra"); // C-FGFS
|
||||
|
||||
#ifdef ENABLE_AUDIO_SUPPORT
|
||||
// Load all available voices.
|
||||
|
@ -140,6 +143,8 @@ void FGATCMgr::update(double dt) {
|
|||
SG_LOG(SG_ATC, SG_WARN, "Warning - ATCMgr::update(...) called before ATCMgr::init()");
|
||||
}
|
||||
|
||||
current_atcdialog->Update(dt);
|
||||
|
||||
//cout << "Entering update..." << endl;
|
||||
//Traverse the list of active stations.
|
||||
//Only update one class per update step to avoid the whole ATC system having to calculate between frames.
|
||||
|
@ -532,16 +537,16 @@ void FGATCMgr::FreqSearch(int channel) {
|
|||
FGATC* app = FindInList(comm_ident[chan], TOWER);
|
||||
if(app != NULL) {
|
||||
// The station is already in the ATC list
|
||||
//cout << "In list - flagging SetDisplay..." << endl;
|
||||
cout << comm_ident[chan] << " is in list - flagging SetDisplay..." << endl;
|
||||
app->SetDisplay();
|
||||
} else {
|
||||
// Generate the station and put in the ATC list
|
||||
//cout << "Not in list - generating..." << endl;
|
||||
cout << comm_ident[chan] << " is not in list - generating..." << endl;
|
||||
FGTower* t = new FGTower;
|
||||
t->SetData(&data);
|
||||
comm_atc_ptr[chan] = t;
|
||||
t->SetDisplay();
|
||||
t->Init();
|
||||
t->SetDisplay();
|
||||
atc_list.push_back(t);
|
||||
}
|
||||
} else if (comm_type[chan] == GROUND) {
|
||||
|
@ -556,8 +561,8 @@ void FGATCMgr::FreqSearch(int channel) {
|
|||
FGGround* g = new FGGround;
|
||||
g->SetData(&data);
|
||||
comm_atc_ptr[chan] = g;
|
||||
g->SetDisplay();
|
||||
g->Init();
|
||||
g->SetDisplay();
|
||||
atc_list.push_back(g);
|
||||
}
|
||||
} else if (comm_type[chan] == APPROACH) {
|
||||
|
@ -575,8 +580,8 @@ void FGATCMgr::FreqSearch(int channel) {
|
|||
FGApproach* a = new FGApproach;
|
||||
a->SetData(&data);
|
||||
comm_atc_ptr[chan] = a;
|
||||
a->SetDisplay();
|
||||
a->Init();
|
||||
a->SetDisplay();
|
||||
a->AddPlane("Player");
|
||||
atc_list.push_back(a);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue