From ff1828fc7117d1dfcb5ea3dd04baf1ddc9045b3b Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sun, 8 Jul 2012 20:24:33 +0200 Subject: MOHAWK: Play anims for LiveText items *after* the speech. Another attempt at fixing bug #3541294. --- engines/mohawk/livingbooks.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'engines') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index f5e5e7d7b4..7f7df66e53 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -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; } } -- cgit v1.2.3