mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Minor code cleanup
This commit is contained in:
parent
469cc44ef7
commit
f86ddef4db
@ -490,16 +490,17 @@ namespace MWInput
|
||||
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||
return;
|
||||
|
||||
if (MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Journal
|
||||
&& MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_MainMenu
|
||||
&& MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Settings
|
||||
&& MWBase::Environment::get().getWindowManager ()->getJournalAllowed())
|
||||
MWBase::WindowManager* windowManager = MWBase::Environment::get().getWindowManager();
|
||||
if (windowManager->getMode() != MWGui::GM_Journal
|
||||
&& windowManager->getMode() != MWGui::GM_MainMenu
|
||||
&& windowManager->getMode() != MWGui::GM_Settings
|
||||
&& windowManager->getJournalAllowed())
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Journal);
|
||||
windowManager->pushGuiMode(MWGui::GM_Journal);
|
||||
}
|
||||
else if (MWBase::Environment::get().getWindowManager()->containsMode(MWGui::GM_Journal))
|
||||
else if (windowManager->containsMode(MWGui::GM_Journal))
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Journal);
|
||||
windowManager->removeGuiMode(MWGui::GM_Journal);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user