mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Replace some magic numbers with enum values (#692)
This commit is contained in:
committed by
GitHub
parent
52d74647be
commit
44bc575a2d
@@ -345,8 +345,17 @@ void LegoAnimationManager::FUN_100603c0()
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10060dc0
|
||||
undefined4 LegoAnimationManager::
|
||||
FUN_10060dc0(undefined4, undefined4, undefined, undefined, undefined4, undefined, undefined, undefined, undefined)
|
||||
undefined4 LegoAnimationManager::FUN_10060dc0(
|
||||
IsleScript::Script,
|
||||
undefined4,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined4,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined
|
||||
)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
|
||||
@@ -873,6 +873,7 @@ void LegoGameState::SwitchArea(Area p_area)
|
||||
case e_unk28: {
|
||||
Act1State* state = (Act1State*) GameState()->GetState("Act1State");
|
||||
LoadIsle();
|
||||
|
||||
if (state->GetUnknown18() == 7) {
|
||||
VideoManager()->Get3DManager()->SetFrustrum(90, 0.1f, 250.0f);
|
||||
}
|
||||
@@ -881,6 +882,7 @@ void LegoGameState::SwitchArea(Area p_area)
|
||||
CurrentActor()->ResetWorldTransform(TRUE);
|
||||
AnimationManager()->FUN_1005f0b0();
|
||||
}
|
||||
|
||||
CurrentActor()->VTable0xe8(p_area, TRUE, 7);
|
||||
break;
|
||||
}
|
||||
@@ -921,22 +923,26 @@ void LegoGameState::SwitchArea(Area p_area)
|
||||
break;
|
||||
case e_act2main: {
|
||||
LegoWorld* act2main = FindWorld(*g_act2mainScript, 0);
|
||||
|
||||
if (act2main == NULL) {
|
||||
InvokeAction(Extra::ActionType::e_opendisk, *g_act2mainScript, 0, NULL);
|
||||
}
|
||||
else {
|
||||
act2main->Enable(TRUE);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case e_act3script: {
|
||||
LegoWorld* act3 = FindWorld(*g_act3Script, 0);
|
||||
|
||||
if (act3 == NULL) {
|
||||
InvokeAction(Extra::ActionType::e_opendisk, *g_act3Script, 0, NULL);
|
||||
}
|
||||
else {
|
||||
act3->Enable(TRUE);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case e_jukeboxw:
|
||||
|
||||
Reference in New Issue
Block a user