mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
LAB: Process events during ending sequence
LAB: Fix bug #7022 - Events not processed during ending sequence
This commit is contained in:
parent
445980f010
commit
82e73c38fc
@ -238,6 +238,8 @@ void LabEngine::doActions(const ActionList &actionList) {
|
||||
ActionList::const_iterator action;
|
||||
for (action = actionList.begin(); action != actionList.end(); ++action) {
|
||||
updateEvents();
|
||||
if (_quitLab || shouldQuit())
|
||||
return;
|
||||
|
||||
switch (action->_actionType) {
|
||||
case kActionPlaySound:
|
||||
@ -381,6 +383,8 @@ void LabEngine::doActions(const ActionList &actionList) {
|
||||
|
||||
while (_system->getMillis() < targetMillis) {
|
||||
updateEvents();
|
||||
if (_quitLab || shouldQuit())
|
||||
return;
|
||||
_anim->diffNextFrame();
|
||||
}
|
||||
}
|
||||
@ -409,6 +413,8 @@ void LabEngine::doActions(const ActionList &actionList) {
|
||||
case kActionWaitSound: // used in scene 44 (heart of the labyrinth / ending)
|
||||
while (_music->isSoundEffectActive()) {
|
||||
updateEvents();
|
||||
if (_quitLab || shouldQuit())
|
||||
return;
|
||||
_anim->diffNextFrame();
|
||||
waitTOF();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user