aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/m4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/m4.cpp')
-rw-r--r--engines/m4/m4.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/m4/m4.cpp b/engines/m4/m4.cpp
index 33a2fe6b68..897fb468cd 100644
--- a/engines/m4/m4.cpp
+++ b/engines/m4/m4.cpp
@@ -583,13 +583,15 @@ Common::Error MadsEngine::run() {
_animation->updateAnim();
- // Call the updateState method of all views
- _viewManager->updateState();
-
if (g_system->getMillis() >= nextFrame) {
- _viewManager->refreshAll();
nextFrame = g_system->getMillis() + GAME_FRAME_DELAY;
++_currentTimer;
+
+ // Call the updateState method of all views
+ _viewManager->updateState();
+
+ // Refresh the display
+ _viewManager->refreshAll();
}
g_system->delayMillis(10);