diff options
author | Strangerke | 2013-02-03 22:51:34 +0100 |
---|---|---|
committer | Strangerke | 2013-02-03 22:51:34 +0100 |
commit | db60dcb4328c1e703c234560d5dfe42aa08935c4 (patch) | |
tree | 31a428a53dd62bce1fd1c46e406e938275077b25 /engines/hopkins/anim.cpp | |
parent | cec23051b340cd112841e9f930f97b6ec1c0d01a (diff) | |
download | scummvm-rg350-db60dcb4328c1e703c234560d5dfe42aa08935c4.tar.gz scummvm-rg350-db60dcb4328c1e703c234560d5dfe42aa08935c4.tar.bz2 scummvm-rg350-db60dcb4328c1e703c234560d5dfe42aa08935c4.zip |
HOPKINS: Replace a global variable by a parameter in playSequence()
Diffstat (limited to 'engines/hopkins/anim.cpp')
-rw-r--r-- | engines/hopkins/anim.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hopkins/anim.cpp b/engines/hopkins/anim.cpp index e2980b3eae..d0186171d2 100644 --- a/engines/hopkins/anim.cpp +++ b/engines/hopkins/anim.cpp @@ -597,7 +597,7 @@ void AnimationManager::searchAnim(const byte *data, int animIndex, int bufSize) /** * Play sequence */ -void AnimationManager::playSequence(const Common::String &file, uint32 rate1, uint32 rate2, uint32 rate3) { +void AnimationManager::playSequence(const Common::String &file, uint32 rate1, uint32 rate2, uint32 rate3, bool skipEscFl) { bool readError; byte *screenCopy = NULL; byte *screenP; @@ -666,7 +666,7 @@ void AnimationManager::playSequence(const Common::String &file, uint32 rate1, ui if (_vm->_globals.iRegul == 1) { do { if (_vm->_eventsManager._escKeyFl) { - if (!_vm->_eventsManager._disableEscKeyFl) + if (!skipEscFl) skipFl = true; else _vm->_eventsManager._escKeyFl = false; @@ -687,7 +687,7 @@ void AnimationManager::playSequence(const Common::String &file, uint32 rate1, ui if (_vm->_globals.iRegul == 1) { do { if (_vm->_eventsManager._escKeyFl) { - if (!_vm->_eventsManager._disableEscKeyFl) + if (!skipEscFl) skipFl = true; else _vm->_eventsManager._escKeyFl = false; @@ -719,7 +719,7 @@ void AnimationManager::playSequence(const Common::String &file, uint32 rate1, ui if (_vm->_globals.iRegul == 1) { do { if (_vm->_eventsManager._escKeyFl) { - if (!_vm->_eventsManager._disableEscKeyFl) + if (!skipEscFl) skipFl = true; else _vm->_eventsManager._escKeyFl = false; @@ -756,7 +756,7 @@ void AnimationManager::playSequence(const Common::String &file, uint32 rate1, ui if (_vm->_globals.iRegul == 1 && !skipFl) { do { if (_vm->_eventsManager._escKeyFl) { - if (!_vm->_eventsManager._disableEscKeyFl) + if (!skipEscFl) skipFl = true; else _vm->_eventsManager._escKeyFl = false; |