Patch from Andy Ross to hide virtual panel when required:
Oh yeah, I forgot to send that one along. This one is my bug, I goofed the precedence in the fgPanelVisible() function in panel.cxx such that the panel was *always* visible if virtual cockpit was enabled. Here's a replacement. I've modified the style from a single boolean expression to an if-list, since that's more readable to my eyes for expressions this big:
This commit is contained in:
parent
40c83de415
commit
0bdc1b1699
1 changed files with 6 additions and 6 deletions
|
@ -83,16 +83,16 @@ get_aspect_adjust (int xsize, int ysize)
|
||||||
bool
|
bool
|
||||||
fgPanelVisible ()
|
fgPanelVisible ()
|
||||||
{
|
{
|
||||||
if(current_panel == 0)
|
if(current_panel == 0)
|
||||||
return false;
|
return false;
|
||||||
if(current_panel->getVisibility() == 0)
|
if(current_panel->getVisibility() == 0)
|
||||||
return false;
|
return false;
|
||||||
if(globals->get_viewmgr()->get_current() != 0)
|
if(globals->get_viewmgr()->get_current() != 0)
|
||||||
return false;
|
return false;
|
||||||
if(globals->get_current_view()->get_view_offset() != 0 &&
|
if(globals->get_current_view()->get_view_offset() != 0 &&
|
||||||
!fgGetBool("/sim/virtual-cockpit"))
|
!fgGetBool("/sim/virtual-cockpit"))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue