mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 11:15:33 +00:00
Fix root movement glitch
This commit is contained in:
parent
3195716a2c
commit
6c1f6169c0
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ namespace SceneUtil
|
||||||
//Find the correct animation based on time
|
//Find the correct animation based on time
|
||||||
for (const EmulatedAnimation& emulatedAnimation : mEmulatedAnimations)
|
for (const EmulatedAnimation& emulatedAnimation : mEmulatedAnimations)
|
||||||
{
|
{
|
||||||
if (time > emulatedAnimation.mStartTime && time < emulatedAnimation.mStopTime)
|
if (time >= emulatedAnimation.mStartTime && time <= emulatedAnimation.mStopTime)
|
||||||
{
|
{
|
||||||
newTime = time - emulatedAnimation.mStartTime;
|
newTime = time - emulatedAnimation.mStartTime;
|
||||||
animationName = emulatedAnimation.mName;
|
animationName = emulatedAnimation.mName;
|
||||||
|
|
Loading…
Reference in a new issue