From 578073a6f3622e97e0187a06362a4a7837cd7ce8 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Mon, 23 Sep 2002 13:34:51 +0000
Subject: [PATCH] Slightly cleaned up 3d cloud positioning code.

---
 src/Main/main.cxx | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/Main/main.cxx b/src/Main/main.cxx
index 455f0532e..e6ecca32d 100644
--- a/src/Main/main.cxx
+++ b/src/Main/main.cxx
@@ -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() );
         }