1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Update effects during rest (bug #3679)

This commit is contained in:
Andrei Kortunov 2017-07-28 16:50:52 +04:00
parent 9bc24ab629
commit 920021c61b
2 changed files with 8 additions and 0 deletions

View File

@ -1447,6 +1447,11 @@ namespace MWMechanics
calculateCreatureStatModifiers (iter->first, duration);
if (iter->first.getClass().isNpc())
calculateNpcStatModifiers(iter->first, duration);
MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(iter->first);
if (animation)
animation->updateEffects(duration);
}
fastForwardAi();

View File

@ -823,7 +823,10 @@ namespace MWWorld
mWeatherManager->advanceTime (hours, incremental);
if (!incremental)
{
mRendering->notifyWorldSpaceChanged();
mProjectileManager->clear();
}
hours += mGameHour->getFloat();