mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +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())
|
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Journal
|
MWBase::WindowManager* windowManager = MWBase::Environment::get().getWindowManager();
|
||||||
&& MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_MainMenu
|
if (windowManager->getMode() != MWGui::GM_Journal
|
||||||
&& MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Settings
|
&& windowManager->getMode() != MWGui::GM_MainMenu
|
||||||
&& MWBase::Environment::get().getWindowManager ()->getJournalAllowed())
|
&& 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