Fix time drift on repeating tasks (bug 3302, r=dvander).
This commit is contained in:
parent
5324c7c620
commit
49e3b748c3
|
@ -168,7 +168,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
|
|||
{
|
||||
clear();
|
||||
} else {
|
||||
m_fNextExecTime += m_fBase;
|
||||
m_fNextExecTime = fCurrentTime + m_fBase;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user