]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/apt_dlg.cxx
More fg -> sg namespace changes in simgear.
[flightgear.git] / src / GUI / apt_dlg.cxx
index 1c7d7f3e2b049247b6e33dff96664aa109249aec..a6a5220f4c847a95a88890ad0883e463bf4ade29 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <simgear/constants.h>
 #include <simgear/debug/logstream.hxx>
-#include <simgear/misc/fgpath.hxx>
+#include <simgear/misc/sg_path.hxx>
 
 #include <Include/general.hxx>
 
@@ -51,7 +51,7 @@ void AptDialog_Cancel(puObject *)
 
 void AptDialog_OK (puObject *)
 {
-       FGPath path( globals->get_fg_root() );
+       SGPath path( globals->get_fg_root() );
        path.append( "Airports" );
        path.append( "simple.mk4" );
        FGAirports airports( path.c_str() );
@@ -72,7 +72,7 @@ void AptDialog_OK (puObject *)
 
        if ( AptId.length() ) {
                // set initial position from airport id
-               FG_LOG( FG_GENERAL, FG_INFO,
+               SG_LOG( SG_GENERAL, SG_INFO,
                                "Attempting to set starting position from airport code "
                                << AptId );
 
@@ -83,7 +83,7 @@ void AptDialog_OK (puObject *)
                        // fgSetPosFromAirportID( AptId );
                        fgSetPosFromAirportIDandHdg( AptId, 
                                                     cur_fdm_state->get_Psi() *
-                                                    RAD_TO_DEG);
+                                                    SGD_RADIANS_TO_DEGREES);
                        BusyCursor(0);
                        fgReInitSubsystems();
                        BusyCursor(1);