From: curt Date: Wed, 19 Sep 2001 22:27:08 +0000 (+0000) Subject: For ADA fdm turn on hud for center channel. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f2e89407d257162a89913b2c7863d3cdc8065259;p=flightgear.git For ADA fdm turn on hud for center channel. --- diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 15328eb69..b6bf7f043 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -239,6 +239,12 @@ do_view_cycle (const SGPropertyNode * arg, SGCommandState ** state) { globals->get_current_view()->set_view_offset(0.0); globals->set_current_view(globals->get_viewmgr()->next_view()); + if ( fgGetString("/sim/flight-model") == "ada" ) { + globals->get_props()->setBoolValue( "/sim/hud/visibility", true ); + if ( globals->get_viewmgr()->get_current() == 1 ) { + globals->get_props()->setBoolValue( "/sim/hud/visibility", false ); + } + } // fgReshape(fgGetInt("/sim/startup/xsize"), fgGetInt("/sim/startup/ysize")); return true; }