1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00

Fix root movement glitch

This commit is contained in:
Nelsson Huotari 2020-12-15 13:50:19 +02:00
parent 3195716a2c
commit 6c1f6169c0

View File

@ -117,7 +117,7 @@ namespace SceneUtil
//Find the correct animation based on time
for (const EmulatedAnimation& emulatedAnimation : mEmulatedAnimations)
{
if (time > emulatedAnimation.mStartTime && time < emulatedAnimation.mStopTime)
if (time >= emulatedAnimation.mStartTime && time <= emulatedAnimation.mStopTime)
{
newTime = time - emulatedAnimation.mStartTime;
animationName = emulatedAnimation.mName;