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