From eb81ab5b244924053786ac0d006aa797f41841d6 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Wed, 15 Mar 2017 17:07:25 +0400 Subject: [PATCH] Disables weapon and spells cycling in GUI mode (bugs #2409, #2483, #2645) --- apps/openmw/mwgui/windowmanagerimp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/windowmanagerimp.cpp b/apps/openmw/mwgui/windowmanagerimp.cpp index b01070c5f..16d1a9c6d 100644 --- a/apps/openmw/mwgui/windowmanagerimp.cpp +++ b/apps/openmw/mwgui/windowmanagerimp.cpp @@ -1955,12 +1955,14 @@ namespace MWGui void WindowManager::cycleSpell(bool next) { - mSpellWindow->cycle(next); + if (!isGuiMode()) + mSpellWindow->cycle(next); } void WindowManager::cycleWeapon(bool next) { - mInventoryWindow->cycle(next); + if (!isGuiMode()) + mInventoryWindow->cycle(next); } void WindowManager::setConsoleSelectedObject(const MWWorld::Ptr &object)