]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/ilslist.cxx
- adjusted for no-value constructor for FGPanel
[flightgear.git] / src / Navaids / ilslist.cxx
index b4d24349302cf2292c32002b406277a84a3264d2..cf8c9e55fb22b6f56b92e5f968b34361bac76991 100644 (file)
 // $Id$
 
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 
 #include "mkrbeacons.hxx"
@@ -43,12 +47,12 @@ FGILSList::~FGILSList( void ) {
 
 
 // load the navaids and build the map
-bool FGILSList::init( FGPath path ) {
+bool FGILSList::init( SGPath path ) {
     FGILS ils;
 
     ilslist.erase( ilslist.begin(), ilslist.end() );
 
-    fg_gzifstream in( path.str() );
+    sg_gzifstream in( path.str() );
     if ( !in.is_open() ) {
         SG_LOG( SG_GENERAL, SG_ALERT, "Cannot open file: " << path.str() );
         exit(-1);
@@ -101,17 +105,17 @@ bool FGILSList::init( FGPath path ) {
        if ( fabs(ils.get_omlon()) > SG_EPSILON ||
             fabs(ils.get_omlat()) > SG_EPSILON ) {
            current_beacons->add( ils.get_omlon(), ils.get_omlat(),
-                                 ils.get_gselev(), FGBeacon::OUTER );
+                                 ils.get_gselev(), FGMkrBeacon::OUTER );
        }
        if ( fabs(ils.get_mmlon()) > SG_EPSILON ||
             fabs(ils.get_mmlat()) > SG_EPSILON ) {
            current_beacons->add( ils.get_mmlon(), ils.get_mmlat(),
-                                 ils.get_gselev(), FGBeacon::MIDDLE );
+                                 ils.get_gselev(), FGMkrBeacon::MIDDLE );
        }
        if ( fabs(ils.get_imlon()) > SG_EPSILON ||
             fabs(ils.get_imlat()) > SG_EPSILON ) {
            current_beacons->add( ils.get_imlon(), ils.get_imlat(),
-                                 ils.get_gselev(), FGBeacon::INNER );
+                                 ils.get_gselev(), FGMkrBeacon::INNER );
        }
     }