Some paranoia checks in TIMInterpreter::refreshTimersAfterPause.

svn-id: r32468
This commit is contained in:
Johannes Schickel 2008-06-01 15:15:12 +00:00
parent 0485fbfc5b
commit 85a3f389ae

View File

@ -186,8 +186,10 @@ void TIMInterpreter::exec(TIM *tim, bool loop) {
void TIMInterpreter::refreshTimersAfterPause(uint32 elapsedTime) {
for (int i = 0; i < 10; i++) {
_currentTim->func[i].lastTime += elapsedTime;
_currentTim->func[i].nextTime += elapsedTime;
if (_currentTim->func[i].lastTime)
_currentTim->func[i].lastTime += elapsedTime;
if (_currentTim->func[i].nextTime)
_currentTim->func[i].nextTime += elapsedTime;
}
}