]> git.mxchange.org Git - flightgear.git/commitdiff
Updated to support new weather subsystem (visibility variable determins
authorcurt <curt>
Tue, 10 Aug 1999 03:45:47 +0000 (03:45 +0000)
committercurt <curt>
Tue, 10 Aug 1999 03:45:47 +0000 (03:45 +0000)
how far out the scenery should be drawn.)

src/Scenery/tilemgr.cxx

index 3de6ebce4baa2412e6a4fb9178f1394f8d305b43..88bf6eb83dc10fe0489360b1d61441b0ab9e9fd9 100644 (file)
@@ -46,7 +46,8 @@
 #include <Math/vector.hxx>
 #include <Objects/materialmgr.hxx>
 #include <Objects/obj.hxx>
-#include <Weather/weather.hxx>
+// #include <Weather/weather.hxx>
+#include <WeatherCM/FGLocalWeatherDatabase.h>
 
 #include "scenery.hxx"
 #include "tilecache.hxx"
@@ -688,7 +689,11 @@ void FGTileMgr::prep_ssg_nodes( void ) {
        if ( t->is_loaded() ) {
            // set range selector (LOD trick) to be distance to center
            // of tile + bounding radius
-           ranges[1] = current_weather.get_visibility() + t->bounding_radius;
+           /*
+            * ranges[1] = current_weather.get_visibility()+t->bounding_radius;
+            */
+           ranges[1] = WeatherDatabase->getWeatherVisibility()
+               + t->bounding_radius;
            t->range_ptr->setRanges( ranges, 2 );
 
            // calculate tile offset