mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 03:40:24 +00:00
Add comment
This commit is contained in:
parent
67bd882bc7
commit
9e1bfde46f
1 changed files with 4 additions and 1 deletions
|
@ -500,6 +500,9 @@ void CharacterController::refreshIdleAnims(const WeaponInfo* weap, CharacterStat
|
||||||
idle += weap->shortgroup;
|
idle += weap->shortgroup;
|
||||||
if(!mAnimation->hasAnimation(idle))
|
if(!mAnimation->hasAnimation(idle))
|
||||||
idle = "idle";
|
idle = "idle";
|
||||||
|
|
||||||
|
// play until the Loop Stop key 2 to 5 times, then play until the Stop key
|
||||||
|
// this replicates original engine behavior for the "Idle1h" 1st-person animation
|
||||||
numLoops = 1 + Misc::Rng::rollDice(4);
|
numLoops = 1 + Misc::Rng::rollDice(4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue