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

Merge pull request #1353 from akortunov/restfix

Update effects during rest (bug #3679)
This commit is contained in:
scrawl 2017-07-28 20:46:14 +00:00 committed by GitHub
commit 4c2487d55f
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();