diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 4d8d1243e..e2372561e 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -664,11 +664,12 @@ void fgRenderFrame( void ) { double agl = current_aircraft.fdm_state->get_Altitude() * SG_FEET_TO_METER - scenery.get_cur_elev(); - if ( agl > 10.0 ) { + if (fgGetBool("/cockpit")) + ssgSetNearFar( 0.2f, 120000.0f ); + else if ( agl > 10.0) ssgSetNearFar( 10.0f, 120000.0f ); - } else { + else ssgSetNearFar( 0.5f, 120000.0f ); - } current_model.update(0); // FIXME: use real delta time