]> git.mxchange.org Git - flightgear.git/commitdiff
For ADA fdm turn on hud for center channel.
authorcurt <curt>
Wed, 19 Sep 2001 22:27:08 +0000 (22:27 +0000)
committercurt <curt>
Wed, 19 Sep 2001 22:27:08 +0000 (22:27 +0000)
src/Main/fg_commands.cxx

index 15328eb69efdd19b5edf4f6504c0e9f3c6fe63be..b6bf7f043d659c13eb98e065d0504dbdb08c6ae9 100644 (file)
@@ -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;
 }