Skip to content

Commit

Permalink
HOPKINS: Fix freeze when playing some animations
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGilbert committed Feb 15, 2013
1 parent edd0a63 commit fb163db
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions engines/hopkins/anim.cpp
Expand Up @@ -858,13 +858,11 @@ void AnimationManager::playSequence2(const Common::String &file, uint32 rate1, u
}

if (_vm->_globals.iRegul == 1) {
while (!_vm->_eventsManager._escKeyFl) {
// Wait for third rate delay
do {
_vm->_eventsManager.refreshEvents();
_vm->_soundManager.checkSoundEnd();
if (_vm->_eventsManager._rateCounter < rate3) {
break;
}
}
} while (!_vm->shouldQuit() && !_vm->_eventsManager._escKeyFl && _vm->_eventsManager._rateCounter < rate3);
}

_vm->_eventsManager._rateCounter = 0;
Expand Down

0 comments on commit fb163db

Please sign in to comment.