1
0
Fork 0

Updated to support new weather subsystem (visibility variable determins

how far out the scenery should be drawn.)
This commit is contained in:
curt 1999-08-10 03:45:47 +00:00
parent 9e3edfb47b
commit 8b2e57a93d

View 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