]> git.mxchange.org Git - flightgear.git/commitdiff
Someone managed to commit changes as cvsguest, return to the original
authorcurt <curt>
Sun, 9 Nov 2003 00:46:56 +0000 (00:46 +0000)
committercurt <curt>
Sun, 9 Nov 2003 00:46:56 +0000 (00:46 +0000)
version.  These changes need to be added via the proper channels.

src/ATC/ATCdisplay.hxx
src/ATC/ATCmgr.cxx

index 0734e446f9956d74f0a4e70b452ca82638157277..c41bb72f8fc0477af09919bda578ddc1443fe11e 100644 (file)
@@ -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 = 0.0);        // 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);      // 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
index 22e2f6610836917f15d99b6df81945380f93e563..2056fcce7732cebcbc4fc670bfa9f46c975ec78b 100644 (file)
@@ -102,9 +102,6 @@ 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.
@@ -143,8 +140,6 @@ 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.
@@ -537,16 +532,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 << comm_ident[chan] << " is in list - flagging SetDisplay..." << endl;
+                               //cout << "In list - flagging SetDisplay..." << endl;
                                app->SetDisplay();
                        } else {
                                // Generate the station and put in the ATC list
-                               cout << comm_ident[chan] << " is not in list - generating..." << endl;
+                               //cout << "Not in list - generating..." << endl;
                                FGTower* t = new FGTower;
                                t->SetData(&data);
                                comm_atc_ptr[chan] = t;
-                               t->Init();
                                t->SetDisplay();
+                               t->Init();
                                atc_list.push_back(t);
                        }
                }  else if (comm_type[chan] == GROUND) {
@@ -561,8 +556,8 @@ void FGATCMgr::FreqSearch(int channel) {
                                FGGround* g = new FGGround;
                                g->SetData(&data);
                                comm_atc_ptr[chan] = g;
-                               g->Init();
                                g->SetDisplay();
+                               g->Init();
                                atc_list.push_back(g);
                        }
                } else if (comm_type[chan] == APPROACH) {
@@ -580,8 +575,8 @@ void FGATCMgr::FreqSearch(int channel) {
                                FGApproach* a = new FGApproach;
                                a->SetData(&data);
                                comm_atc_ptr[chan] = a;
-                               a->Init();
                                a->SetDisplay();
+                               a->Init();
                                a->AddPlane("Player");
                                atc_list.push_back(a);
                        }