mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 10:31:16 +00:00
Cap maximum deltaTime in LegoNavController
This commit is contained in:
parent
e95f7795c1
commit
af4e5790a9
@ -341,7 +341,7 @@ MxBool LegoNavController::CalculateNewPosDir(
|
|||||||
MxBool und = FALSE;
|
MxBool und = FALSE;
|
||||||
|
|
||||||
MxTime currentTime = Timer()->GetTime();
|
MxTime currentTime = Timer()->GetTime();
|
||||||
float deltaTime = (currentTime - m_lastTime) / 1000.0;
|
float deltaTime = Min((currentTime - m_lastTime) / 1000.0, 1. / 10.);
|
||||||
m_lastTime = currentTime;
|
m_lastTime = currentTime;
|
||||||
|
|
||||||
if (ProcessKeyboardInput() == FAILURE) {
|
if (ProcessKeyboardInput() == FAILURE) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user