mirror of
https://github.com/isledecomp/isle.git
synced 2025-01-05 04:12:01 -05:00
Match LegoGameState::Load
(#1239)
This commit is contained in:
parent
90c687bde0
commit
18fc084a3f
1 changed files with 5 additions and 5 deletions
|
@ -336,7 +336,7 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
||||||
}
|
}
|
||||||
|
|
||||||
MxU32 version, status;
|
MxU32 version, status;
|
||||||
MxS16 count, area, act;
|
MxS16 count, actArea;
|
||||||
const char* lightPosition;
|
const char* lightPosition;
|
||||||
|
|
||||||
Read(&fileStorage, &version);
|
Read(&fileStorage, &version);
|
||||||
|
@ -348,8 +348,8 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
||||||
|
|
||||||
Read(&fileStorage, &m_unk0x24);
|
Read(&fileStorage, &m_unk0x24);
|
||||||
|
|
||||||
Read(&fileStorage, &act);
|
Read(&fileStorage, &actArea);
|
||||||
SetCurrentAct((Act) act);
|
SetCurrentAct((Act) actArea);
|
||||||
|
|
||||||
Read(&fileStorage, &m_actorId);
|
Read(&fileStorage, &m_actorId);
|
||||||
if (m_actorId) {
|
if (m_actorId) {
|
||||||
|
@ -406,13 +406,13 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Read(&fileStorage, &area);
|
Read(&fileStorage, &actArea);
|
||||||
|
|
||||||
if (m_currentAct == 0) {
|
if (m_currentAct == 0) {
|
||||||
m_unk0x42c = e_undefined;
|
m_unk0x42c = e_undefined;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_unk0x42c = (Area) area;
|
m_unk0x42c = (Area) actArea;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = SUCCESS;
|
result = SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue