]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Patch from Andy Ross to hide virtual panel when required:
[flightgear.git] / src / Cockpit / panel.cxx
index 913fc4bfd07556011fd552e12e14fdfe2a72bbe1..e912dc390ee2e2ab4430bde00eda1c9aeb00af07 100644 (file)
@@ -83,16 +83,16 @@ get_aspect_adjust (int xsize, int ysize)
 bool
 fgPanelVisible ()
 {
-    if(current_panel == 0)
+     if(current_panel == 0)
        return false;
-    if(current_panel->getVisibility() == 0)
+     if(current_panel->getVisibility() == 0)
        return false;
-    if(globals->get_viewmgr()->get_current() != 0)
+     if(globals->get_viewmgr()->get_current() != 0)
        return false;
-    if(globals->get_current_view()->get_view_offset() != 0 &&
-       !fgGetBool("/sim/virtual-cockpit"))
+     if(globals->get_current_view()->get_view_offset() != 0 &&
+        !fgGetBool("/sim/virtual-cockpit"))
        return false;
-    return true;
+     return true;
 }