]> git.mxchange.org Git - flightgear.git/commitdiff
Slightly cleaned up 3d cloud positioning code.
authorcurt <curt>
Mon, 23 Sep 2002 13:34:51 +0000 (13:34 +0000)
committercurt <curt>
Mon, 23 Sep 2002 13:34:51 +0000 (13:34 +0000)
src/Main/main.cxx

index 455f0532e3097049946881ded0e6c45862e89fe9..e6ecca32d52d25441a2043dc201e67a2d1e8e0b8 100644 (file)
@@ -211,8 +211,6 @@ ssgTransform *fgd_pos = NULL;
 SGSky *thesky;
 SkySceneLoader *sgClouds3d;
 bool _bcloud_orig = true;
-Point3D posit;
-Point3D *_posit = &posit;
 
 // hack
 sgMat4 copy_of_ssgOpenGLAxisSwapMatrix =
@@ -500,12 +498,11 @@ void fgRenderFrame() {
             glEnable(GL_DEPTH_TEST);
             glEnable(GL_BLEND);
             glBlendFunc( GL_ONE, GL_ONE_MINUS_SRC_ALPHA ) ;
-            posit =  globals->get_scenery()->get_center();
             if ( _bcloud_orig ) {
-                sgClouds3d->Set_Cloud_Orig( _posit );
+                sgClouds3d->Set_Cloud_Orig( &(globals->get_scenery()->
+                                              get_center()) );
                 _bcloud_orig = false;
             }
-            // sgClouds3d->Set_Cloud_Orig(&(globals->get_scenery()->get_center()));
             sgClouds3d->Update( current__view->get_absolute_view_pos() );
         }