mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 18:13:07 +00:00
Manually clamp controller time (#7523)
This commit is contained in:
parent
78459314bf
commit
04b714198a
1 changed files with 7 additions and 1 deletions
|
|
@ -57,7 +57,13 @@ namespace NifOsg
|
||||||
}
|
}
|
||||||
case Nif::NiTimeController::ExtrapolationMode::Constant:
|
case Nif::NiTimeController::ExtrapolationMode::Constant:
|
||||||
default:
|
default:
|
||||||
return std::clamp(time, mStartTime, mStopTime);
|
{
|
||||||
|
if (time < mStartTime)
|
||||||
|
return mStartTime;
|
||||||
|
if (time > mStopTime)
|
||||||
|
return mStopTime;
|
||||||
|
return time;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue