1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-13 20:01:42 +00:00

Manually clamp controller time (#7523)

This commit is contained in:
Alexei Kotov 2024-01-01 20:59:33 +03:00
parent 78459314bf
commit 04b714198a

View file

@ -57,7 +57,13 @@ namespace NifOsg
}
case Nif::NiTimeController::ExtrapolationMode::Constant:
default:
return std::clamp(time, mStartTime, mStopTime);
{
if (time < mStartTime)
return mStartTime;
if (time > mStopTime)
return mStopTime;
return time;
}
}
}