From: ehofman Date: Wed, 9 Jul 2003 14:45:02 +0000 (+0000) Subject: Changes to reflect the code reorganization from CUrtis X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0700498e6f54b3584bb7307be1661d864ce01f42;p=flightgear.git Changes to reflect the code reorganization from CUrtis --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 58d25bfcc..85c04926a 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -65,8 +65,8 @@ #include #include #ifdef FG_USE_CLOUDS_3D -# include -# include +# include +# include #endif #include #include @@ -1481,6 +1481,13 @@ bool fgInitSubsystems() { // Initialize the 3D cloud subsystem. //////////////////////////////////////////////////////////////////// if ( fgGetBool("/sim/rendering/clouds3d") ) { + static const SGPropertyNode *longitude + = fgGetNode("/sim/presets/longitude-deg"); + static const SGPropertyNode *latitude + = fgGetNode("/sim/presets/latitude-deg"); + static const SGPropertyNode *altitude + = fgGetNode("/sim/presets/altitude-ft"); + 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());