mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-30 11:41:16 +00:00
Move vars
This commit is contained in:
parent
60f65ba340
commit
4c6b8182c3
@ -281,7 +281,10 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
if (fileStream.Open(savePath.GetData(), LegoFile::c_read) == FAILURE)
|
if (fileStream.Open(savePath.GetData(), LegoFile::c_read) == FAILURE)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
MxU32 version;
|
MxU32 version, status;
|
||||||
|
MxS16 count, area, act;
|
||||||
|
const char* lightPosition;
|
||||||
|
|
||||||
Read(&fileStream, &version);
|
Read(&fileStream, &version);
|
||||||
|
|
||||||
if (version != 0x1000c) {
|
if (version != 0x1000c) {
|
||||||
@ -291,7 +294,6 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
|
|
||||||
Read(&fileStream, &m_unk0x24);
|
Read(&fileStream, &m_unk0x24);
|
||||||
|
|
||||||
MxS16 act;
|
|
||||||
Read(&fileStream, &act);
|
Read(&fileStream, &act);
|
||||||
SetCurrentAct((Act) act);
|
SetCurrentAct((Act) act);
|
||||||
|
|
||||||
@ -300,8 +302,6 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
SetActor(m_actorId);
|
SetActor(m_actorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* lightPosition;
|
|
||||||
MxU32 status;
|
|
||||||
do {
|
do {
|
||||||
status = ReadVariable(&fileStream, variableTable);
|
status = ReadVariable(&fileStream, variableTable);
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
@ -329,7 +329,6 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
MxS16 count;
|
|
||||||
char stateName[80];
|
char stateName[80];
|
||||||
Read(&fileStream, &count);
|
Read(&fileStream, &count);
|
||||||
|
|
||||||
@ -353,7 +352,6 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MxS16 area;
|
|
||||||
Read(&fileStream, &area);
|
Read(&fileStream, &area);
|
||||||
|
|
||||||
if (m_currentAct == 0) {
|
if (m_currentAct == 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user