aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-11-26 20:47:02 +0100
committerAlyssa Milburn2011-11-26 20:49:02 +0100
commit4466b6556a57bd9e43f0690203cfdd0ccdfa2e04 (patch)
treedb21a0a9a18a6724f1440e2eca5c83be6defe0ae
parent581aca66fa95b9fad693db22e0df5e626b63d80c (diff)
downloadscummvm-rg350-4466b6556a57bd9e43f0690203cfdd0ccdfa2e04.tar.gz
scummvm-rg350-4466b6556a57bd9e43f0690203cfdd0ccdfa2e04.tar.bz2
scummvm-rg350-4466b6556a57bd9e43f0690203cfdd0ccdfa2e04.zip
MOHAWK: Start the LB load phase at load time.
-rw-r--r--engines/mohawk/livingbooks.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 14ee03124a..e8232f2583 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -102,6 +102,9 @@ void LBPage::open(Archive *mhk, uint16 baseId) {
for (uint32 i = 0; i < _items.size(); i++)
_items[i]->init();
+
+ for (uint32 i = 0; i < _items.size(); i++)
+ _items[i]->startPhase(0xFFFE);
}
void LBPage::itemDestroyed(LBItem *item) {
@@ -438,9 +441,6 @@ void MohawkEngine_LivingBooks::updatePage() {
switch (_phase) {
case 0:
for (uint32 i = 0; i < _items.size(); i++)
- _items[i]->startPhase(0xFFFE);
-
- for (uint32 i = 0; i < _items.size(); i++)
_items[i]->startPhase(0xFFFF);
for (uint32 i = 0; i < _items.size(); i++)