From fdafdaf5994fa8e43c58db2c78acc213ca95949f Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Thu, 31 Oct 2024 09:09:28 +0300 Subject: [PATCH] Update spell icons if the world is unpaused --- apps/openmw/mwgui/spellwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/spellwindow.cpp b/apps/openmw/mwgui/spellwindow.cpp index 10a83f2b2d..d183a00273 100644 --- a/apps/openmw/mwgui/spellwindow.cpp +++ b/apps/openmw/mwgui/spellwindow.cpp @@ -14,6 +14,7 @@ #include "../mwbase/world.hpp" #include "../mwworld/class.hpp" +#include "../mwworld/datetimemanager.hpp" #include "../mwworld/esmstore.hpp" #include "../mwworld/inventorystore.hpp" #include "../mwworld/player.hpp" @@ -91,8 +92,8 @@ namespace MWGui mSpellView->incrementalUpdate(); } - // Update effects in-game too if the window is pinned - if (mPinned && !MWBase::Environment::get().getWindowManager()->isGuiMode()) + // Update effects if the time is unpaused for any reason (e.g. the window is pinned) + if (!MWBase::Environment::get().getWorld()->getTimeManager()->isPaused()) mSpellIcons->updateWidgets(mEffectBox, false); }