]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCmgr.cxx
More efficient rotation matrix calc from Norm Vine.
[flightgear.git] / src / ATC / ATCmgr.cxx
index 5d77f197495d50e2291576e238c7cff66f575433..eb6441de854ef79a889a8a82a80af14d88c1be19 100644 (file)
@@ -88,7 +88,7 @@ void FGATCMgr::init() {
     airport_atc_map[(string)"KEMT"] = a;
 }
 
-void FGATCMgr::update(int dt) {
+void FGATCMgr::update(double dt) {
     //Traverse the list of active stations.
     //Only update one class per update step to avoid the whole ATC system having to calculate between frames.
     //Eventually we should only update every so many steps.
@@ -149,7 +149,7 @@ void FGATCMgr::RemoveFromList(const char* id, atc_type tp) {
 // Returns true if the airport is found in the map
 bool FGATCMgr::GetAirportATCDetails(string icao, AirportATC* a) {
     if(airport_atc_map.find(icao) != airport_atc_map.end()) {
-       a = airport_atc_map[icao];
+        *a = *airport_atc_map[icao];
        return(true);
     } else {
        return(false);
@@ -198,6 +198,8 @@ FGATC* FGATCMgr::GetATCPointer(string icao, atc_type type) {
     }
 
     cout << "ERROR IN FGATCMgr - reached end of GetATCPointer\n";
+
+    return NULL;
 }