From db60dcb4328c1e703c234560d5dfe42aa08935c4 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 3 Feb 2013 22:51:34 +0100 Subject: HOPKINS: Replace a global variable by a parameter in playSequence() --- engines/hopkins/anim.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/hopkins/anim.cpp') 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; -- cgit v1.2.3