forked from mirror/openmw-tes3mp
Minor cleanup
This commit is contained in:
parent
fcf35d3871
commit
0880805559
2 changed files with 1 additions and 9 deletions
|
@ -13,12 +13,6 @@
|
|||
|
||||
#include <extern/sdl4ogre/sdlcursormanager.hpp>
|
||||
|
||||
#include <components/settings/settings.hpp>
|
||||
#include <components/translation/translation.hpp>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/mechanicsmanager.hpp"
|
||||
|
||||
#include "../mwbase/inputmanager.hpp"
|
||||
|
||||
#include "../mwworld/class.hpp"
|
||||
|
|
|
@ -562,9 +562,7 @@ namespace MWInput
|
|||
if (MyGUI::InputManager::getInstance ().isModalAny())
|
||||
return;
|
||||
|
||||
if (mWindows.isGuiMode () && (mWindows.getMode () == MWGui::GM_MainMenu || mWindows.getMode () == MWGui::GM_Settings))
|
||||
mWindows.popGuiMode();
|
||||
else if (mWindows.isGuiMode () && mWindows.getMode () == MWGui::GM_Video)
|
||||
if (mWindows.isGuiMode () && mWindows.getMode () == MWGui::GM_Video)
|
||||
MWBase::Environment::get().getWorld ()->stopVideo ();
|
||||
else if (mWindows.containsMode(MWGui::GM_MainMenu))
|
||||
mWindows.popGuiMode();
|
||||
|
|
Loading…
Reference in a new issue