undoing code structures changes to else blocks

This commit is contained in:
amer cerkic 2019-07-10 14:07:10 -07:00
parent 09ecb49e5b
commit fc21f6088a

View file

@ -5418,8 +5418,7 @@ void Application::loadSettings() {
} }
} }
isFirstPerson = (qApp->isHMDMode()); isFirstPerson = (qApp->isHMDMode());
} } else {
else {
if (_firstRun.get()) { if (_firstRun.get()) {
// If this is our first run, and no preferred devices were set, default to // If this is our first run, and no preferred devices were set, default to
// an HMD device if available. // an HMD device if available.
@ -5434,15 +5433,13 @@ void Application::loadSettings() {
} }
} }
isFirstPerson = (qApp->isHMDMode()); isFirstPerson = (qApp->isHMDMode());
} } else {
else {
// if this is not the first run, the camera will be initialized differently depending on user settings // if this is not the first run, the camera will be initialized differently depending on user settings
if (qApp->isHMDMode()) { if (qApp->isHMDMode()) {
// if the HMD is active, use first-person camera, unless the appropriate setting is checked // if the HMD is active, use first-person camera, unless the appropriate setting is checked
isFirstPerson = menu->isOptionChecked(MenuOption::FirstPersonHMD); isFirstPerson = menu->isOptionChecked(MenuOption::FirstPersonHMD);
} } else {
else {
// if HMD is not active, only use first person if the menu option is checked // if HMD is not active, only use first person if the menu option is checked
isFirstPerson = menu->isOptionChecked(MenuOption::FirstPerson); isFirstPerson = menu->isOptionChecked(MenuOption::FirstPerson);
} }