diff options
author | Paul Gilbert | 2012-11-28 21:15:07 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-11-28 21:15:07 +1100 |
commit | b0ce324685882c5e302958f64ad15dc04c0b9eae (patch) | |
tree | 51d54d2213e89dbf938a1182301cb391df607624 | |
parent | ca95da2f87cdaa9a228b4d8d22a4a0334d0db2ce (diff) | |
download | scummvm-rg350-b0ce324685882c5e302958f64ad15dc04c0b9eae.tar.gz scummvm-rg350-b0ce324685882c5e302958f64ad15dc04c0b9eae.tar.bz2 scummvm-rg350-b0ce324685882c5e302958f64ad15dc04c0b9eae.zip |
HOPKINS: Bugfix for ending delay after Bernie is killed
-rw-r--r-- | engines/hopkins/globals.cpp | 2 | ||||
-rw-r--r-- | engines/hopkins/globals.h | 2 | ||||
-rw-r--r-- | engines/hopkins/hopkins.cpp | 7 |
3 files changed, 3 insertions, 8 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index 882d869d33..02f70f1bc3 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -126,8 +126,6 @@ Globals::Globals() { VOICEVOL = 6; XSETMODE = 0; XZOOM = 0; - lItCounter = 0; - lOldItCounter = 0; g_old_anim = 0; g_old_sens = 0; g_old_sens2 = 0; diff --git a/engines/hopkins/globals.h b/engines/hopkins/globals.h index 7d01d9fa45..abde148e20 100644 --- a/engines/hopkins/globals.h +++ b/engines/hopkins/globals.h @@ -372,8 +372,6 @@ public: bool MUSICOFF; bool VOICEOFF; bool CENSURE; - int lItCounter; - int lOldItCounter; int g_old_anim; int g_old_sens, g_old_sens2; int last_sens; diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp index ddb7e3ad95..dc65de0aa0 100644 --- a/engines/hopkins/hopkins.cpp +++ b/engines/hopkins/hopkins.cpp @@ -1475,8 +1475,6 @@ void HopkinsEngine::INIT_SYSTEM() { _eventsManager.ofset_souris_x = 0; _eventsManager.ofset_souris_y = 0; - _globals.lItCounter = 0; - _globals.lOldItCounter = 0; } void HopkinsEngine::INTRORUN() { @@ -2071,11 +2069,12 @@ void HopkinsEngine::JOUE_FIN() { _soundManager.DEL_SAMPLE(1); _graphicsManager.LOAD_IMAGE("PLAN3"); _graphicsManager.FADE_INW(); - _globals.lItCounter = 0; + + _eventsManager.lItCounter = 0; if (!_eventsManager.ESC_KEY) { do _eventsManager.CONTROLE_MES(); - while (_globals.lItCounter < 2000 / _globals.vitesse && !_eventsManager.ESC_KEY); + while (_eventsManager.lItCounter < 2000 / _globals.vitesse && !_eventsManager.ESC_KEY); } _eventsManager.ESC_KEY = false; _graphicsManager.FADE_OUTW(); |