#include <simgear/misc/fgpath.hxx>
#include <Main/globals.hxx>
#include <Objects/texload.h>
+#include <Time/light.hxx>
#include "hud.hxx"
#include "panel.hxx"
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));
}