]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/ilslist.cxx
MacOS changes by Darrell Walisser.
[flightgear.git] / src / Navaids / ilslist.cxx
index 957065d53d01dc16a6918f3a90b08d530a11579b..2b27f22e770c22de79b937c24da35d50bf3b879b 100644 (file)
@@ -61,10 +61,10 @@ bool FGILSList::init( FGPath path ) {
 #ifdef __MWERKS__
 
     char c = 0;
-    while ( in.get(c) && c != '\0' && n.get_ilstype() != '[' ) {
+    while ( in.get(c) && c != '\0' && ils.get_ilstype() != '[' ) {
         in.putback(c);
         in >> ils;
-       if ( ils.get_type() != '[' ) {
+       if ( ils.get_ilstype() != '[' ) {
            ilslist[ils.get_locfreq()].push_back(ils);
        }
         in >> skipcomment;
@@ -122,9 +122,9 @@ bool FGILSList::query( double lon, double lat, double elev, double freq,
     double d;
     for ( ; current != last ; ++current ) {
        // cout << "  testing " << current->get_locident() << endl;
-       station = Point3D(current->get_dme_x(), 
-                         current->get_dme_y(),
-                         current->get_dme_z());
+       station = Point3D(current->get_x(), 
+                         current->get_y(),
+                         current->get_z());
        // cout << "    aircraft = " << aircraft << " station = " << station 
        //      << endl;