X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_commands.cxx;h=1dd37d387e8912f2e11cc24a4f6643994c1c74e3;hb=18d42ec1af014fe4f2a563607bdcce0964fa678e;hp=6131e4795fc2f6796d56702ecd9677075f9ed93b;hpb=37d3cf7fbb69f7d5e19375dc41d4402eee4a6387;p=flightgear.git diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 6131e4795..1dd37d387 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -222,7 +223,7 @@ do_exit (const SGPropertyNode * arg) static bool do_reset (const SGPropertyNode * arg) { - reInit(); + doSimulatorReset(); return true; } @@ -1233,7 +1234,7 @@ do_presets_commit (const SGPropertyNode * arg) // unbind the current fdm state so property changes // don't get lost when we subsequently delete this fdm // and create a new one. - cur_fdm_state->unbind(); + globals->get_subsystem("flight")->unbind(); // set position from presets fgInitPosition(); @@ -1315,14 +1316,14 @@ do_increase_visibility (const SGPropertyNode * arg) static bool do_hud_init(const SGPropertyNode *) { - fgHUDInit(0); // minimal HUD + fgHUDInit(); // minimal HUD return true; } static bool do_hud_init2(const SGPropertyNode *) { - fgHUDInit2(0); // normal HUD + fgHUDInit2(); // normal HUD return true; }