]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/environment_ctrl.cxx
Reset: fix OSG stats handling
[flightgear.git] / src / Environment / environment_ctrl.cxx
index d4ebbf595fae872dbac50e7a0b9b1ee364b5f5f4..98f59cb9ef61eb1694f5d74dbd0c995d2095f043 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <algorithm>
 
+#include <simgear/math/SGMath.hxx>
 #include <Main/fg_props.hxx>
 #include "environment_ctrl.hxx"
 #include "environment.hxx"
@@ -123,7 +124,7 @@ private:
     LayerTable _aloft_table;
 
     FGEnvironment _environment;
-    TiedPropertyList _tiedProperties;
+    simgear::TiedPropertyList _tiedProperties;
 };
 
 //////////////////////////////////////////////////////////////////////////////
@@ -182,7 +183,7 @@ void LayerTable::read(FGEnvironment * parent )
     // cleanup entries with (almost)same altitude
     for( size_type n = 1; n < size(); n++ ) {
         if( fabs(at(n)->altitude_ft - at(n-1)->altitude_ft ) < 1 ) {
-            SG_LOG( SG_GENERAL, SG_ALERT, "Removing duplicate altitude entry in environment config for altitude " << at(n)->altitude_ft );
+            SG_LOG( SG_ENVIRONMENT, SG_ALERT, "Removing duplicate altitude entry in environment config for altitude " << at(n)->altitude_ft );
             erase( begin() + n );
         }
     }