mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-26 03:16:35 +00:00
Merge branch 'soitsthesametypeofstandasstarplatinum' into 'master'
Update spell window effect icons if the world is unpaused See merge request OpenMW/openmw!4439
This commit is contained in:
commit
3e804042c4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user