]> git.mxchange.org Git - flightgear.git/commitdiff
Removed old --clouds-asl option and initialization of clouds-asl
authordavid <david>
Fri, 17 May 2002 19:03:20 +0000 (19:03 +0000)
committerdavid <david>
Fri, 17 May 2002 19:03:20 +0000 (19:03 +0000)
property, since neither makes sense for multiple cloud layers.

src/Main/options.cxx

index 12e6607531893ef59ce7a25c47cf15b03c02357c..2de0c2b74ba9102d63c303628ee7cdce09b7310e 100644 (file)
@@ -167,7 +167,6 @@ fgSetDefaults ()
                                // Rendering options
     fgSetString("/sim/rendering/fog", "nicest");
     fgSetBool("/environment/clouds/status", true);
-    fgSetDouble("/environment/clouds/altitude-ft", 5000);
     fgSetBool("/sim/startup/fullscreen", false);
     fgSetBool("/sim/rendering/shading", true);
     fgSetBool("/sim/rendering/skyblend", true);
@@ -706,14 +705,6 @@ parse_option (const string& arg)
         fgSetBool("/environment/clouds/status", false);
     } else if ( arg == "--enable-clouds" ) {
         fgSetBool("/environment/clouds/status", true);
-    } else if ( arg.find( "--clouds-asl=" ) == 0 ) {
-                               // FIXME: check units
-        if ( !strcmp(fgGetString("/sim/startup/units"), "feet") )
-         fgSetDouble("/environment/clouds/altitude-ft",
-                               atof(arg.substr(13)));
-       else
-         fgSetDouble("/environment/clouds/altitude-ft",
-                               atof(arg.substr(13)) * SG_METER_TO_FEET);
     } else if ( arg.find( "--fov=" ) == 0 ) {
        parse_fov( arg.substr(6) );
     } else if ( arg == "--disable-fullscreen" ) {
@@ -1202,7 +1193,6 @@ fgUsage ()
          << "    --fog-nicest                  Enable nicest fog/haze" << endl
          << "    --enable-clouds               Enable cloud layers" << endl
          << "    --disable-clouds              Disable cloud layers" << endl
-         << "    --clouds-asl=altitude         Specify altitude of cloud layer above sea" << endl
          << "                                  level" << endl
          << "    --fov=degrees                 Specify field of view angle" << endl
          << "    --disable-fullscreen          Disable fullscreen mode" << endl