MOHAWK: Play anims for LiveText items *after* the speech.

Another attempt at fixing bug #3541294.
This commit is contained in:
Alyssa Milburn 2012-07-08 20:24:33 +02:00
parent 3b69816a7d
commit ff1828fc71

View File

@ -3460,6 +3460,12 @@ void LBLiveTextItem::update() {
uint16 soundId = _words[_currentWord].soundId;
if (soundId && !_vm->_sound->isPlaying(soundId)) {
paletteUpdate(_currentWord, false);
// TODO: check this in RE
LBItem *item = _vm->getItemById(_words[_currentWord].itemId);
if (item)
item->togglePlaying(false);
_currentWord = 0xFFFF;
}
}
@ -3530,11 +3536,6 @@ void LBLiveTextItem::handleMouseDown(Common::Point pos) {
_currentWord = i;
_vm->playSound(this, soundId);
paletteUpdate(_currentWord, true);
// TODO: check this in RE
LBItem *item = _vm->getItemById(_words[i].itemId);
if (item)
item->togglePlaying(false);
return;
}
}