From 098c489ae0580ff67f8bf839d84396ccad45ea18 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 20 Sep 2018 10:26:48 +0100 Subject: [PATCH] =?UTF-8?q?Make=20=E2=80=94parking-id=20an=20alias=20for?= =?UTF-8?q?=20=E2=80=94parkpos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Main/options.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 0f3916c64..ab36190a0 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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},