This commit is contained in:
Christian Semmler 2024-01-30 12:13:16 -05:00
parent cae9019471
commit 8b76dee603
3 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@ class LegoState : public MxCore {
void* m_unk0x00; // 0x00
undefined2 m_unk0x04; // 0x04
undefined2 m_unk0x06; // 0x06
MxS16 m_unk0x08; // 0x08
MxU16 m_unk0x08; // 0x08
StateStruct();
};

View File

@ -29,7 +29,7 @@ class RadioState : public LegoState {
private:
StateStruct m_unk0x08[3]; // 0x08
MxU16 m_unk0x2c; // 0x2c
MxS16 m_unk0x2c; // 0x2c
undefined m_unk0x2e; // 0x2e
};

View File

@ -50,8 +50,8 @@ RadioState::RadioState()
{
srand(Timer()->GetTime());
MxU32 random = rand();
m_unk0x2c = (MxS32) random % 3;
MxS32 random = rand();
m_unk0x2c = random % 3;
m_unk0x08[0].m_unk0x00 = m_unk0x100f3218;
m_unk0x08[0].m_unk0x04 = 6;
@ -64,7 +64,7 @@ RadioState::RadioState()
m_unk0x08[1].m_unk0x04 = 14;
m_unk0x08[1].m_unk0x06 = 0;
m_unk0x08[1].m_unk0x08 = 0;
m_unk0x08[0].m_unk0x08 = random % 6;
m_unk0x08[0].m_unk0x08 = (MxU32) random % 6;
random = rand();
@ -72,11 +72,11 @@ RadioState::RadioState()
m_unk0x08[2].m_unk0x04 = 9;
m_unk0x08[2].m_unk0x06 = 0;
m_unk0x08[2].m_unk0x08 = 0;
m_unk0x08[1].m_unk0x08 = random % 14;
m_unk0x08[1].m_unk0x08 = (MxU32) random % 14;
random = rand();
m_unk0x08[2].m_unk0x08 = random % 9;
m_unk0x08[2].m_unk0x08 = (MxU32) random % 9;
m_unk0x2e = 0;
}