aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks.cpp11
1 files changed, 6 insertions, 5 deletions
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;
}
}