if( global_tile_mgr.init() ) {
// Load the local scenery data
- global_tile_mgr.update();
+ global_tile_mgr.update( cur_fdm_state->get_Longitude(),
+ cur_fdm_state->get_Latitude() );
} else {
FG_LOG( FG_GENERAL, FG_ALERT, "Error in Tile Manager initialization!" );
exit(-1);
fgInitPosition();
if( global_tile_mgr.init() ) {
// Load the local scenery data
- global_tile_mgr.update();
+ global_tile_mgr.update( cur_fdm_state->get_Longitude(),
+ cur_fdm_state->get_Latitude() );
} else {
FG_LOG( FG_GENERAL, FG_ALERT, "Error in Tile Manager initialization!" );
exit(-1);
BusyCursor(0);
if( global_tile_mgr.init() ) {
// Load the local scenery data
- global_tile_mgr.update();
+ global_tile_mgr.update( cur_fdm_state->get_Longitude(),
+ cur_fdm_state->get_Latitude() );
} else {
FG_LOG( FG_GENERAL, FG_ALERT,
"Error in Tile Manager initialization!" );
thesky->set_visibility( current_weather.get_visibility() );
#endif
- thesky->modify_vis( cur_fdm_state->get_Altitude()
- * FEET_TO_METER,
+ thesky->modify_vis( cur_fdm_state->get_Altitude() * FEET_TO_METER,
( global_multi_loop *
current_options.get_speed_up() ) /
#endif
// see if we need to load any new scenery tiles
- global_tile_mgr.update();
+ global_tile_mgr.update( cur_fdm_state->get_Longitude(),
+ cur_fdm_state->get_Latitude() );
// Process/manage pending events
global_events.Process();
ephem->getPlanets(), 60000.0,
ephem->getNumStars(),
ephem->getStars(), 60000.0 );
- thesky->add_cloud_layer( 1000.0, 200.0, 50.0, SG_CLOUD_MOSTLY_SUNNY );
- thesky->add_cloud_layer( 1800.0, 400.0, 100.0, SG_CLOUD_OVERCAST );
- thesky->add_cloud_layer( 5000.0, 20.0, 10.0, SG_CLOUD_CIRRUS );
+ thesky->add_cloud_layer( 2600.0, 200.0, 50.0, SG_CLOUD_MOSTLY_SUNNY );
+ thesky->add_cloud_layer( 6000.0, 20.0, 10.0, SG_CLOUD_CIRRUS );
// Terrain branch
terrain = new ssgBranch;
// given the current lon/lat, fill in the array of local chunks. If
// the chunk isn't already in the cache, then read it from disk.
-int FGTileMgr::update( void ) {
+int FGTileMgr::update( double junk1, double junk2 ) {
// FG_LOG( FG_TERRAIN, FG_DEBUG, "FGTileMgr::update()" );
FGInterface *f = current_aircraft.fdm_state;
// given the current lon/lat, fill in the array of local chunks.
// If the chunk isn't already in the cache, then read it from
// disk.
- int update( void );
+ int update( double junk1, double junk2 );
// Determine scenery altitude. Normally this just happens when we
// render the scene, but we'd also like to be able to do this