{
current_options.set_airport_id( AptId.c_str() );
current_options.set_altitude( -9999.0 );
- fgSetPosFromAirportID( AptId );
+ // fgSetPosFromAirportID( AptId );
+ fgSetPosFromAirportIDandHdg( AptId,
+ cur_fdm_state->get_Psi() * RAD_TO_DEG);
BusyCursor(0);
fgReInitSubsystems();
BusyCursor(1);
fg_scenery = "";
}
- airport_id = ""; // default airport id
+ airport_id = "P13"; // default airport id
net_id = "Johnney"; // default pilot's name
// initialize port config string list
airport_id = arg.substr( 13 );
} else if ( arg.find( "--lon=" ) != string::npos ) {
lon = parse_degree( arg.substr(6) );
+ airport_id = "";
} else if ( arg.find( "--lat=" ) != string::npos ) {
lat = parse_degree( arg.substr(6) );
+ airport_id = "";
} else if ( arg.find( "--altitude=" ) != string::npos ) {
if ( units == FG_UNITS_FEET ) {
altitude = atof( arg.substr(11) ) * FEET_TO_METER;