diff options
Diffstat (limited to 'engines/access/events.cpp')
-rw-r--r-- | engines/access/events.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/engines/access/events.cpp b/engines/access/events.cpp index 88e783e6d2..db69f7ba2d 100644 --- a/engines/access/events.cpp +++ b/engines/access/events.cpp @@ -144,15 +144,20 @@ void EventsManager::checkForNextFrameCounter() { ++_frameCounter; _priorFrameTime = milli; - // Give time to the debugger - _vm->_debugger->onFrame(); + nextFrame(); + } +} - // Signal the ScummVM debugger - _vm->_debugger->onFrame(); +void EventsManager::nextFrame() { - // TODO: Refactor for dirty rects - _vm->_screen->updateScreen(); - } + // Give time to the debugger + _vm->_debugger->onFrame(); + + // Update timers + _vm->_animation->updateTimers(); + + // TODO: Refactor for dirty rects + _vm->_screen->updateScreen(); } void EventsManager::delay(int time) { |