mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 10:41:15 +00:00
Match functions
This commit is contained in:
parent
dc25b5ab94
commit
872052885c
@ -30,7 +30,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::Username, 0xe)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::Username, 0x0e)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::ScoreItem, 0x2c)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState::History, 0x374)
|
||||
DECOMP_SIZE_ASSERT(LegoGameState, 0x430)
|
||||
|
||||
@ -46,14 +46,10 @@ RegistrationBook::~RegistrationBook()
|
||||
{
|
||||
for (MxS16 i = 0; i < 10; i++) {
|
||||
for (MxS16 j = 0; j < 7; j++) {
|
||||
MxStillPresenter* presenter = m_name[i][j];
|
||||
if (presenter != NULL) {
|
||||
if (presenter->GetAction() != NULL) {
|
||||
delete presenter->GetAction();
|
||||
}
|
||||
|
||||
delete presenter;
|
||||
presenter = NULL;
|
||||
if (m_name[i][j] != NULL) {
|
||||
delete m_name[i][j]->GetAction();
|
||||
delete m_name[i][j];
|
||||
m_name[i][j] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -130,9 +126,11 @@ MxLong RegistrationBook::HandleEndAction(MxEndActionNotificationParam& p_param)
|
||||
if (p_param.GetAction()->GetAtomId() != m_atom) {
|
||||
return 0;
|
||||
}
|
||||
switch ((MxS16) p_param.GetAction()->GetObjectId()) {
|
||||
|
||||
switch ((MxS32) p_param.GetAction()->GetObjectId()) {
|
||||
case RegbookScript::c_Textures:
|
||||
m_unk0x2c1 = 0;
|
||||
|
||||
if (m_unk0x2b8 == 0) {
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
}
|
||||
@ -144,6 +142,7 @@ MxLong RegistrationBook::HandleEndAction(MxEndActionNotificationParam& p_param)
|
||||
m_unk0xf8 = Timer()->GetTime();
|
||||
break;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user