1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-12 04:14:05 +00:00

Use World prng for head/blink animations

This commit is contained in:
ζeh Matt 2022-05-17 17:39:37 +03:00
parent cb99e8643a
commit 3a90bc7187
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0

View File

@ -142,7 +142,8 @@ void HeadAnimationTime::setEnabled(bool enabled)
void HeadAnimationTime::resetBlinkTimer()
{
mBlinkTimer = -(2.0f + Misc::Rng::rollDice(6));
auto& prng = MWBase::Environment::get().getWorld()->getPrng();
mBlinkTimer = -(2.0f + Misc::Rng::rollDice(6, prng));
}
void HeadAnimationTime::update(float dt)