Stand/Fly button not showing if sitting/flying in mouselook with FSShowInterfaceInMouselook = TRUE

meow-7.2.2
Ansariel 2016-11-12 02:56:06 +01:00
parent b6baed3250
commit ed02621aff
1 changed files with 4 additions and 1 deletions

View File

@ -624,7 +624,10 @@ BOOL LLPanelStandStopFlying::postBuild()
void LLPanelStandStopFlying::setVisible(BOOL visible)
{
//we dont need to show the panel if these buttons are not activated
if (gAgentCamera.getCameraMode() == CAMERA_MODE_MOUSELOOK) visible = false;
// <FS:Ansariel> Stand/Fly button not showing if sitting/flying in mouselook with FSShowInterfaceInMouselook = TRUE
//if (gAgentCamera.getCameraMode() == CAMERA_MODE_MOUSELOOK) visible = false;
if (gAgentCamera.getCameraMode() == CAMERA_MODE_MOUSELOOK && !gSavedSettings.getBOOL("FSShowInterfaceInMouselook")) visible = false;
// </FS:Ansariel>
if (visible)
{