mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Match Infocenter::Create
This commit is contained in:
parent
a82eb65f48
commit
ab6bd81486
@ -94,28 +94,30 @@ MxResult Infocenter::Create(MxDSAction& p_dsAction)
|
|||||||
m_infocenterState->SetUnknown0x74(2);
|
m_infocenterState->SetUnknown0x74(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
MxS16 count;
|
MxS16 count, i;
|
||||||
for (count = 0; count < 7; count++) {
|
for (count = 0; count < m_infocenterState->GetInfocenterBufferSize(); count++) {
|
||||||
if (m_infocenterState->GetInfocenterBufferElement(count) == NULL) {
|
if (m_infocenterState->GetInfocenterBufferElement(count) == NULL) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (MxS16 i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
MxStillPresenter* still = m_infocenterState->GetInfocenterBufferElement(i);
|
if (m_infocenterState->GetInfocenterBufferElement(i)) {
|
||||||
if (still) {
|
m_infocenterState->GetInfocenterBufferElement(i)->Enable(TRUE);
|
||||||
still->Enable(TRUE);
|
m_infocenterState->GetInfocenterBufferElement(i)->SetTickleState(MxPresenter::e_repeating);
|
||||||
still->SetTickleState(MxPresenter::e_repeating);
|
m_infocenterState->GetInfocenterBufferElement(i)->VTable0x88(((7 - count) / 2 + i) * 29 + 223, 45);
|
||||||
still->VTable0x88(((7 - count) / 2 + i), 45);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GameState()->SetCurrentArea(2);
|
GameState()->SetCurrentArea(2);
|
||||||
GameState()->StopArea(0);
|
GameState()->StopArea(0);
|
||||||
|
|
||||||
if (m_infocenterState->GetUnknown0x74() == 4) {
|
if (m_infocenterState->GetUnknown0x74() == 4) {
|
||||||
GameState()->SetPreviousArea(GameState()->GetUnknown0x42c());
|
LegoGameState* state = GameState();
|
||||||
|
state->SetPreviousArea(GameState()->GetUnknown0x42c());
|
||||||
}
|
}
|
||||||
|
|
||||||
InputManager()->Register(this);
|
InputManager()->Register(this);
|
||||||
SetIsWorldActive(FALSE);
|
SetIsWorldActive(FALSE);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user