]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Tweaks.
[flightgear.git] / src / Cockpit / panel.cxx
index 3e371f43e6392b84d98e6163ada299ab51829d78..11370d7452ea70c783d1d68f5cbc1997844679de 100644 (file)
@@ -35,6 +35,7 @@
 #include <simgear/misc/fgpath.hxx>
 #include <Main/globals.hxx>
 #include <Objects/texload.h>
+#include <Time/light.hxx>
 
 #include "hud.hxx"
 #include "panel.hxx"
@@ -44,7 +45,7 @@ bool
 fgPanelVisible ()
 {
   return ((globals->get_options()->get_panel_status()) &&
-         (globals->get_options()->get_view_mode() == FGOptions::FG_VIEW_PILOT) &&
+         (globals->get_viewmgr()->get_current() == 0) &&
          (globals->get_current_view()->get_view_offset() == 0.0));
 }