1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Merge branch 'fix_menu_timers' into 'master'

Process menu script timers

See merge request OpenMW/openmw!4103
This commit is contained in:
psi29a 2024-05-17 08:54:43 +00:00
commit 42db5f4386

View File

@ -181,6 +181,7 @@ namespace MWLua
MWWorld::DateTimeManager& timeManager = *MWBase::Environment::get().getWorld()->getTimeManager();
if (!timeManager.isPaused())
{
mMenuScripts.processTimers(timeManager.getSimulationTime(), timeManager.getGameTime());
mGlobalScripts.processTimers(timeManager.getSimulationTime(), timeManager.getGameTime());
for (LocalScripts* scripts : mActiveLocalScripts)
scripts->processTimers(timeManager.getSimulationTime(), timeManager.getGameTime());