mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
MOHAWK: Run LB load-time scripts properly.
This commit is contained in:
parent
553d32a818
commit
3553e58bb0
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user