mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Remove unused variable, add LegoVehicleBuildState::Serialize
This commit is contained in:
parent
1c8f249c51
commit
26196c3dba
@ -660,7 +660,6 @@ MxResult AmbulanceMissionState::Serialize(LegoFile* p_file)
|
|||||||
Read(p_file, &m_laHighScore);
|
Read(p_file, &m_laHighScore);
|
||||||
}
|
}
|
||||||
else if (p_file->IsWriteMode()) {
|
else if (p_file->IsWriteMode()) {
|
||||||
MxS16 write;
|
|
||||||
Write(p_file, m_peScore);
|
Write(p_file, m_peScore);
|
||||||
Write(p_file, m_maScore);
|
Write(p_file, m_maScore);
|
||||||
Write(p_file, m_paScore);
|
Write(p_file, m_paScore);
|
||||||
|
|||||||
@ -73,9 +73,23 @@ LegoVehicleBuildState::LegoVehicleBuildState(const char* p_classType)
|
|||||||
m_placedPartCount = 0;
|
m_placedPartCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10026120
|
// FUNCTION: LEGO1 0x10026120
|
||||||
MxResult LegoVehicleBuildState::Serialize(LegoFile* p_file)
|
MxResult LegoVehicleBuildState::Serialize(LegoFile* p_file)
|
||||||
{
|
{
|
||||||
// TODO
|
LegoState::Serialize(p_file);
|
||||||
return LegoState::Serialize(p_file);
|
|
||||||
|
if (p_file->IsReadMode()) {
|
||||||
|
Read(p_file, &m_unk0x4c);
|
||||||
|
Read(p_file, &m_unk0x4d);
|
||||||
|
Read(p_file, &m_unk0x4e);
|
||||||
|
Read(p_file, &m_placedPartCount);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write(p_file, m_unk0x4c);
|
||||||
|
Write(p_file, m_unk0x4d);
|
||||||
|
Write(p_file, m_unk0x4e);
|
||||||
|
Write(p_file, m_placedPartCount);
|
||||||
|
}
|
||||||
|
|
||||||
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user