mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-30 11:41:16 +00:00
Match
This commit is contained in:
parent
8ec140551b
commit
60f65ba340
@ -278,7 +278,9 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
MxString savePath;
|
MxString savePath;
|
||||||
GetFileSavePath(&savePath, p_slot);
|
GetFileSavePath(&savePath, p_slot);
|
||||||
|
|
||||||
if (fileStream.Open(savePath.GetData(), LegoFile::c_read) != FAILURE) {
|
if (fileStream.Open(savePath.GetData(), LegoFile::c_read) == FAILURE)
|
||||||
|
goto done;
|
||||||
|
|
||||||
MxU32 version;
|
MxU32 version;
|
||||||
Read(&fileStream, &version);
|
Read(&fileStream, &version);
|
||||||
|
|
||||||
@ -298,6 +300,7 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
SetActor(m_actorId);
|
SetActor(m_actorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* lightPosition;
|
||||||
MxU32 status;
|
MxU32 status;
|
||||||
do {
|
do {
|
||||||
status = ReadVariable(&fileStream, variableTable);
|
status = ReadVariable(&fileStream, variableTable);
|
||||||
@ -307,7 +310,7 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
} while (status != 2);
|
} while (status != 2);
|
||||||
|
|
||||||
m_backgroundColor->SetLights();
|
m_backgroundColor->SetLights();
|
||||||
const char* lightPosition = VariableTable()->GetVariable("lightposition");
|
lightPosition = VariableTable()->GetVariable("lightposition");
|
||||||
|
|
||||||
if (lightPosition) {
|
if (lightPosition) {
|
||||||
SetLightPosition(atoi(lightPosition));
|
SetLightPosition(atoi(lightPosition));
|
||||||
@ -362,7 +365,6 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|||||||
|
|
||||||
result = SUCCESS;
|
result = SUCCESS;
|
||||||
m_isDirty = FALSE;
|
m_isDirty = FALSE;
|
||||||
}
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (result != SUCCESS) {
|
if (result != SUCCESS) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user