mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
MOHAWK: Play anims for LiveText items *after* the speech.
Another attempt at fixing bug #3541294.
This commit is contained in:
parent
3b69816a7d
commit
ff1828fc71
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user