mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-05 16:36:42 +00:00
Use World prng for head/blink animations
This commit is contained in:
parent
cb99e8643a
commit
3a90bc7187
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ void HeadAnimationTime::setEnabled(bool enabled)
|
||||||
|
|
||||||
void HeadAnimationTime::resetBlinkTimer()
|
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)
|
void HeadAnimationTime::update(float dt)
|
||||||
|
|
Loading…
Reference in a new issue