]> git.mxchange.org Git - flightgear.git/commitdiff
Init 3d clouds at starting location.
authorcurt <curt>
Thu, 3 Oct 2002 03:19:35 +0000 (03:19 +0000)
committercurt <curt>
Thu, 3 Oct 2002 03:19:35 +0000 (03:19 +0000)
src/Main/fg_init.cxx

index aee83504f44ca19bdde5f336191b9ac605140575..fbe02a1626d8636f6fc37b8b1c9801da9a9f1afb 100644 (file)
@@ -917,7 +917,10 @@ bool fgInitSubsystems( void ) {
         SGPath cloud_path(globals->get_fg_root());
         cloud_path.append("large.sky");
         SG_LOG(SG_GENERAL, SG_INFO, "Loading CLOUDS3d from: " << cloud_path.c_str());
-        if ( !sgCloud3d->Load( cloud_path.str() ) ) {
+        if ( !sgCloud3d->Load( cloud_path.str(),
+                               latitude->getDoubleValue(),
+                               longitude->getDoubleValue()) )
+        {
             fgSetBool("/sim/rendering/clouds3d", false);
             SG_LOG(SG_GENERAL, SG_INFO, "CLOUDS3d FAILED: ");
         }