diff options
author | Alyssa Milburn | 2011-12-01 23:54:18 +0100 |
---|---|---|
committer | Alyssa Milburn | 2011-12-01 23:54:18 +0100 |
commit | 3553e58bb0c22be4a9bb6d96dfc101a6d4923081 (patch) | |
tree | 93416f72d237cd2212eddc1078781458a81c30c1 | |
parent | 553d32a81808844eefbb603fb09adff7e96234ef (diff) | |
download | scummvm-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.cpp | 9 |
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() { |