HOPKINS: Fix freeze when playing some animations

This commit is contained in:
Dreammaster committed 2013-02-14 21:08:00 -05:00
1 parent edd0a631fc
commit fb163db0bc
1 file changed
+3 -5
+3 -5
View File
@@ -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;