1
0
Fork 0

Make —parking-id an alias for —parkpos

This commit is contained in:
James Turner 2018-09-20 10:26:48 +01:00
parent 639c8fd4b4
commit 098c489ae0

View file

@ -753,6 +753,7 @@ static int
fgOptParkpos( const char * arg )
{
fgSetString("/sim/presets/parkpos", arg);
fgSetBool("/sim/presets/parking-requested", true);
return FG_OPTIONS_OK;
}
@ -1434,15 +1435,6 @@ fgOptRunway( const char *arg )
return FG_OPTIONS_OK;
}
static int
fgOptParking( const char *arg )
{
cerr << "Processing argument " << arg << endl;
fgSetString("/sim/presets/parking", arg );
fgSetBool ("/sim/presets/parking-requested", true );
return FG_OPTIONS_OK;
}
static int
fgOptCallSign(const char * arg)
{
@ -1820,7 +1812,7 @@ struct OptionDesc {
{"min-status", true, OPTION_STRING, "/sim/aircraft-min-status", false, "all", 0 },
{"livery", true, OPTION_FUNC, "", false, "", fgOptLivery },
{"ai-scenario", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptScenario },
{"parking-id", true, OPTION_FUNC, "", false, "", fgOptParking },
{"parking-id", true, OPTION_FUNC, "", false, "", fgOptParkpos },
{"version", false, OPTION_IGNORE, "", false, "", 0 },
{"json-report", false, OPTION_IGNORE, "", false, "", 0 },
{"enable-fpe", false, OPTION_IGNORE, "", false, "", 0},