Clear unknown in ModelDbModel (#1586)

This commit is contained in:
Fabian Neundorf
2025-06-23 23:34:02 +02:00
committed by GitHub
parent edae5f58ec
commit 7f10f7ae14
3 changed files with 3 additions and 3 deletions

View File

@@ -393,7 +393,7 @@ MxResult LegoWorldPresenter::LoadWorldModel(ModelDbModel& p_model, FILE* p_wdbFi
} }
modelPresenter.SetAction(&action); modelPresenter.SetAction(&action);
modelPresenter.FUN_1007ff70(chunk, createdEntity, p_model.m_unk0x34, p_world); modelPresenter.FUN_1007ff70(chunk, createdEntity, p_model.m_visible, p_world);
delete[] buff; delete[] buff;
return SUCCESS; return SUCCESS;

View File

@@ -52,7 +52,7 @@ MxResult ModelDbModel::Read(FILE* p_file)
if (fread(&m_up, sizeof(float), 3, p_file) != 3) { if (fread(&m_up, sizeof(float), 3, p_file) != 3) {
return FAILURE; return FAILURE;
} }
if (fread(&m_unk0x34, sizeof(undefined), 1, p_file) != 1) { if (fread(&m_visible, sizeof(MxU8), 1, p_file) != 1) {
return FAILURE; return FAILURE;
} }

View File

@@ -101,7 +101,7 @@ struct ModelDbModel {
float m_location[3]; // 0x10 float m_location[3]; // 0x10
float m_direction[3]; // 0x1c float m_direction[3]; // 0x1c
float m_up[3]; // 0x28 float m_up[3]; // 0x28
undefined m_unk0x34; // 0x34 MxU8 m_visible; // 0x34
}; };
// SIZE 0x18 // SIZE 0x18