1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 03:59:56 +00:00

Update spell icons if the world is unpaused

This commit is contained in:
Alexei Kotov 2024-10-31 09:09:28 +03:00
parent 34b6a9d402
commit fdafdaf599

View file

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