diff options
author | Paul Gilbert | 2010-04-27 11:23:27 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-04-27 11:23:27 +0000 |
commit | 46c520f7972cac192b018896a039264a47984526 (patch) | |
tree | 514b98d44c6297ebf1b717cdc43aebd3c0f92f2b /engines/m4/m4.cpp | |
parent | 03b229dcbaa184341dffbf7ed3f6cf5921647055 (diff) | |
download | scummvm-rg350-46c520f7972cac192b018896a039264a47984526.tar.gz scummvm-rg350-46c520f7972cac192b018896a039264a47984526.tar.bz2 scummvm-rg350-46c520f7972cac192b018896a039264a47984526.zip |
Added further timer method implementation. Also renamed some of the classes to match those of the original engine, based on the contents of various in-game error messages
svn-id: r48816
Diffstat (limited to 'engines/m4/m4.cpp')
-rw-r--r-- | engines/m4/m4.cpp | 4 |
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); |