Minor cleanup

This commit is contained in:
scrawl 2013-06-13 12:13:40 +02:00
parent fcf35d3871
commit 0880805559
2 changed files with 1 additions and 9 deletions

View file

@ -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"

View file

@ -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();