]> git.mxchange.org Git - flightgear.git/commitdiff
Tweak to the --atc610x option.
authorcurt <curt>
Wed, 2 Apr 2003 14:56:21 +0000 (14:56 +0000)
committercurt <curt>
Wed, 2 Apr 2003 14:56:21 +0000 (14:56 +0000)
src/Main/fg_io.cxx
src/Main/options.cxx

index 458f956c63f554e93a7e4e0726bcdef269fdfd39..e3514841ec1dadc7f138c5748778f9b731527537 100644 (file)
@@ -108,6 +108,11 @@ FGIO::parse_port_config( const string& config )
        if ( protocol == "atc610x" ) {
             FGATC610x *atc610x = new FGATC610x;
            atc610x->set_hz( 30 );
+            if ( tokens.size() > 1 ) {
+                if ( tokens[1] == "no-rudder" ) {
+                    atc610x->set_use_rudder( false );
+                }
+            }
            return atc610x;
        } else if ( protocol == "atlas" ) {
            FGAtlas *atlas = new FGAtlas;
index e4b273bfd61e1e38f1a5b8234f85417172506401..2db0c79a16b72bb1867c07b4eef407261bac2401 100644 (file)
@@ -1153,7 +1153,7 @@ struct OptionDesc {
     {"start-date-gmt",               true,  OPTION_FUNC,   "", false, "", fgOptStartDateGmt },
     {"hud-tris",                     false, OPTION_STRING, "/sim/hud/frame-stat-type", false, "tris", 0 },
     {"hud-culled",                   false, OPTION_STRING, "/sim/hud/frame-stat-type", false, "culled", 0 },
-    {"atc610x",                      false, OPTION_CHANNEL, "", false, "dummy", 0 },
+    {"atc610x",                      true,  OPTION_CHANNEL, "", false, "dummy", 0 },
     {"atlas",                        true,  OPTION_CHANNEL, "", false, "", 0 },
     {"httpd",                        true,  OPTION_CHANNEL, "", false, "", 0 },
 #ifdef FG_JPEG_SERVER