]> git.mxchange.org Git - flightgear.git/blobdiff - src/Time/tmp.cxx
Add David Culp's AI model manager code which is derived from David Luff's AI/ATC...
[flightgear.git] / src / Time / tmp.cxx
index b15514934bb2ae006d9a0764fda6c6967a50cbcc..b77e53435cbde48ad95260672f937474b1380b42 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/magvar/magvar.hxx>
+#include <simgear/timing/sg_time.hxx>
 
 #include <FDM/flight.hxx>
 #include <Main/fg_props.hxx>
@@ -48,11 +49,11 @@ void fgUpdateLocalTime() {
     SGPath zone( globals->get_fg_root() );
     zone.append( "Timezone" );
 
-    cout << "updateLocal("
-         << longitude->getDoubleValue() * SGD_DEGREES_TO_RADIANS
-         << ", "
-         << latitude->getDoubleValue() * SGD_DEGREES_TO_RADIANS
-         << ", " << zone.str() << ")" << endl;
+    SG_LOG(SG_GENERAL, SG_INFO, "updateLocal("
+          << longitude->getDoubleValue() * SGD_DEGREES_TO_RADIANS
+          << ", "
+          << latitude->getDoubleValue() * SGD_DEGREES_TO_RADIANS
+          << ", " << zone.str() << ")");
     globals->get_time_params()->updateLocal( longitude->getDoubleValue()
                                               * SGD_DEGREES_TO_RADIANS, 
                                             latitude->getDoubleValue()
@@ -60,10 +61,3 @@ void fgUpdateLocalTime() {
                                             zone.str() );
 }
 
-
-// update sky and lighting parameters
-void fgUpdateSkyAndLightingParams() {
-    fgUpdateSunPos();
-    fgUpdateMoonPos();
-    cur_light_params.Update();
-}