Fix time drift on repeating tasks (bug 3302, r=dvander).

This commit is contained in:
Seta00 2010-12-12 18:36:59 -08:00
parent 5324c7c620
commit 49e3b748c3

View File

@ -168,7 +168,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
{ {
clear(); clear();
} else { } else {
m_fNextExecTime += m_fBase; m_fNextExecTime = fCurrentTime + m_fBase;
} }
} }
} }