aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2011-02-20 13:43:35 +0100
committerAlyssa Milburn2011-02-20 13:46:12 +0100
commit42ec234a1f32724cc713bd045cdb96d871c7d2c0 (patch)
tree324640f78cc1558b2bb17639204028915849ef29 /engines/mohawk
parent00f85fb58056fef0eb9e6993990393ee1a195b9b (diff)
downloadscummvm-rg350-42ec234a1f32724cc713bd045cdb96d871c7d2c0.tar.gz
scummvm-rg350-42ec234a1f32724cc713bd045cdb96d871c7d2c0.tar.bz2
scummvm-rg350-42ec234a1f32724cc713bd045cdb96d871c7d2c0.zip
MOHAWK: Make LBLiveTextItem call done() when finished.
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index c2f42b659d..e4d51c3a02 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -3284,8 +3284,10 @@ void LBLiveTextItem::notify(uint16 data, uint16 from) {
}
_currentPhrase = i;
// TODO: not sure this is the correct logic
- if (i == _phrases.size() - 1)
+ if (i == _phrases.size() - 1) {
_currentPhrase = 0xFFFF;
+ done(true);
+ }
} else if (_phrases[i].highlightEnd == data && _phrases[i].endId == from) {
debug(2, "Disabling phrase %d", i);
for (uint j = 0; j < _phrases[i].wordCount; j++) {