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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/m4/m4.cpp b/engines/m4/m4.cpp
index 01c51a5e19..0e6dd48e17 100644
--- a/engines/m4/m4.cpp
+++ b/engines/m4/m4.cpp
@@ -493,6 +493,7 @@ MadsEngine::MadsEngine(OSystem *syst, const M4GameDescription *gameDesc): MadsM4
_madsVm = this;
_globals = new MadsGlobals(this);
+ _currentTimer = 0;
}
MadsEngine::~MadsEngine() {
@@ -582,7 +583,8 @@ Common::Error MadsEngine::run() {
if (g_system->getMillis() >= nextFrame) {
_viewManager->refreshAll();
- nextFrame = g_system->getMillis();// + GAME_FRAME_DELAY;
+ nextFrame = g_system->getMillis() + GAME_FRAME_DELAY;
+ ++_currentTimer;
}
g_system->delayMillis(10);