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:
commit
4c2487d55f
@ -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();
|
||||
|
@ -823,7 +823,10 @@ namespace MWWorld
|
||||
mWeatherManager->advanceTime (hours, incremental);
|
||||
|
||||
if (!incremental)
|
||||
{
|
||||
mRendering->notifyWorldSpaceChanged();
|
||||
mProjectileManager->clear();
|
||||
}
|
||||
|
||||
hours += mGameHour->getFloat();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user