mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 11:45:35 +00:00
mLoopCount is the number of *remaining* loops. So we should be checking for >0, not >1.
This commit is contained in:
parent
92a5e52407
commit
a9ade184d8
1 changed files with 1 additions and 1 deletions
|
@ -1874,7 +1874,7 @@ namespace MWMechanics
|
|||
mAnimation->play(mAnimQueue.front().mGroup, Priority_Default, MWRender::Animation::BlendMask_All, false,
|
||||
1.0f, "start", "stop", 0.0f, mAnimQueue.front().mLoopCount, loopfallback);
|
||||
}
|
||||
else if (mAnimQueue.front().mLoopCount > 1 && mAnimQueue.front().mScripted)
|
||||
else if (mAnimQueue.front().mLoopCount > 0 && mAnimQueue.front().mScripted)
|
||||
{
|
||||
// A scripted animation stopped playing before time.
|
||||
// This happens when the animation object is rebuilt, so we should restart the animation here.
|
||||
|
|
Loading…
Reference in a new issue