X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Foptions.cxx;h=1073c5635472bf8ffa5ede6c2b1f25ffdbe52eb9;hb=2cd7473384ec231e2a013b280e83919b98ed2a15;hp=0cb6bebb264742c314f1f1c74e5bd01d02ca46f5;hpb=e9b492af4f65076cd87fbd47a1c182fb6529fcda;p=flightgear.git diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 0cb6bebb2..1073c5635 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -441,7 +441,7 @@ static bool parse_channel( const string& type, const string& channel_str ) { // cout << "Channel string = " << channel_str << endl; - globals->get_channel_options_list().push_back( type + "," + channel_str ); + globals->get_channel_options_list()->push_back( type + "," + channel_str ); return true; } @@ -530,9 +530,9 @@ parse_option (const string& arg) } else if ( arg == "--enable-mouse-pointer" ) { fgSetString("/sim/startup/mouse-pointer", "enabled"); } else if ( arg == "--disable-freeze" ) { - fgSetBool("/sim/freeze", false); + globals->set_freeze(false); } else if ( arg == "--enable-freeze" ) { - fgSetBool("/sim/freeze", true); + globals->set_freeze(true); } else if ( arg == "--disable-anti-alias-hud" ) { fgSetBool("/sim/hud/antialiased", false); } else if ( arg == "--enable-anti-alias-hud" ) { @@ -561,11 +561,11 @@ parse_option (const string& arg) } else if ( arg.find( "--lon=" ) != string::npos ) { fgSetDouble("/position/longitude", parse_degree(arg.substr(6))); - fgSetString("/position/airport-id", ""); + fgSetString("/sim/startup/airport-id", ""); } else if ( arg.find( "--lat=" ) != string::npos ) { fgSetDouble("/position/latitude", parse_degree(arg.substr(6))); - fgSetString("/position/airport-id", ""); + fgSetString("/sim/startup/airport-id", ""); } else if ( arg.find( "--altitude=" ) != string::npos ) { fgSetBool("/sim/startup/onground", false); if ( fgGetString("/sim/startup/units") == "feet" ) @@ -802,8 +802,8 @@ parse_option (const string& arg) string name = assign.substr(0, pos); string value = assign.substr(pos + 1); fgSetString(name.c_str(), value); - FG_LOG(FG_GENERAL, FG_INFO, "Setting default value of property " - << name << " to \"" << value << '"'); + // FG_LOG(FG_GENERAL, FG_INFO, "Setting default value of property " + // << name << " to \"" << value << '"'); // $$$ begin - added VS Renganathan, 14 Oct 2K // for multi-window outside window imagery } else if ( arg.find( "--view-offset=" ) != string::npos ) {