aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-12-01 23:54:18 +0100
committerAlyssa Milburn2011-12-01 23:54:18 +0100
commit3553e58bb0c22be4a9bb6d96dfc101a6d4923081 (patch)
tree93416f72d237cd2212eddc1078781458a81c30c1
parent553d32a81808844eefbb603fb09adff7e96234ef (diff)
downloadscummvm-rg350-3553e58bb0c22be4a9bb6d96dfc101a6d4923081.tar.gz
scummvm-rg350-3553e58bb0c22be4a9bb6d96dfc101a6d4923081.tar.bz2
scummvm-rg350-3553e58bb0c22be4a9bb6d96dfc101a6d4923081.zip
MOHAWK: Run LB load-time scripts properly.
-rw-r--r--engines/mohawk/livingbooks.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 486ecb52eb..73c91adb75 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -2583,10 +2583,7 @@ void LBItem::startPhase(uint phase) {
switch (phase) {
case 0xFFFE:
- if (_timingMode == kLBAutoLoad) {
- debug(2, "Phase load: time startup");
- setNextTime(_periodMin, _periodMax);
- }
+ runScript(kLBEventListLoad);
break;
case 0xFFFF:
runScript(kLBEventPhaseCreate);
@@ -2647,6 +2644,10 @@ void LBItem::load() {
_loaded = true;
// FIXME: events etc
+ if (_timingMode == kLBAutoLoad) {
+ debug(2, "Load: time startup");
+ setNextTime(_periodMin, _periodMax);
+ }
}
void LBItem::unload() {