mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Some paranoia checks in TIMInterpreter::refreshTimersAfterPause.
svn-id: r32468
This commit is contained in:
parent
0485fbfc5b
commit
85a3f389ae
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user