Skip to content

Commit

Permalink
PEGASUS: Fix timers not updating in playSpotSoundSync
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Oct 28, 2011
1 parent 3f69c19 commit 0ec655f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/pegasus/neighborhood/neighborhood.cpp
Expand Up @@ -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);
Expand All @@ -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);
}
Expand Down

0 comments on commit 0ec655f

Please sign in to comment.