aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2011-10-28 01:32:23 -0400
committerMatthew Hoops2011-10-28 01:32:23 -0400
commit0ec655f410a0b0ed485f7e6235b8054e97891fd8 (patch)
tree051be607c9282dc0dbfba580ac9938e84f803352 /engines/pegasus
parent3f69c195ae5824a7f3037add447cca40e8827e6c (diff)
downloadscummvm-rg350-0ec655f410a0b0ed485f7e6235b8054e97891fd8.tar.gz
scummvm-rg350-0ec655f410a0b0ed485f7e6235b8054e97891fd8.tar.bz2
scummvm-rg350-0ec655f410a0b0ed485f7e6235b8054e97891fd8.zip
PEGASUS: Fix timers not updating in playSpotSoundSync
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/neighborhood/neighborhood.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp
index fb95b07aef..36ae4860b5 100644
--- a/engines/pegasus/neighborhood/neighborhood.cpp
+++ b/engines/pegasus/neighborhood/neighborhood.cpp
@@ -473,6 +473,7 @@ void Neighborhood::requestSpotSound(const TimeValue in, const TimeValue out, con
void Neighborhood::playSpotSoundSync(const TimeValue in, const TimeValue out) {
// Let the action queue play out first...
while (!actionQueueEmpty()) {
+ _vm->checkCallBacks();
_vm->refreshDisplay();
_vm->checkNotifications();
_vm->_system->delayMillis(10);
@@ -482,6 +483,7 @@ void Neighborhood::playSpotSoundSync(const TimeValue in, const TimeValue out) {
_spotSounds.playSoundSegment(in, out);
while (_spotSounds.isPlaying()) {
+ _vm->checkCallBacks();
_vm->refreshDisplay();
_vm->_system->delayMillis(10);
}