if ( fgGetBool("/environment/clouds/status") ) {
// thesky->add_cloud_layer( 2000.0, 200.0, 50.0, 40000.0,
// SG_CLOUD_OVERCAST );
- thesky->add_cloud_layer( 2600.0, 200.0, 50.0, 40000.0,
+ thesky->add_cloud_layer( fgGetDouble("/environment/clouds/altitude-ft") *
+ SG_FEET_TO_METER,
+ 200.0, 50.0, 40000.0,
SG_CLOUD_MOSTLY_CLOUDY );
// thesky->add_cloud_layer( 3000.0, 200.0, 50.0, 40000.0,
// SG_CLOUD_MOSTLY_SUNNY );
// FIXME: check units
if ( fgGetString("/sim/startup/units") == "feet" )
fgSetDouble("/environment/clouds/altitude-ft",
- atof(arg.substr(13)) * SG_FEET_TO_METER);
+ atof(arg.substr(13)));
else
fgSetDouble("/environment/clouds/altitude-ft",
- atof(arg.substr(13)));
+ atof(arg.substr(13)) * SG_METER_TO_FEET);
} else if ( arg.find( "--fov=" ) == 0 ) {
parse_fov( arg.substr(6) );
} else if ( arg == "--disable-fullscreen" ) {