Fix SwitchHat (#835)

This commit is contained in:
Christian Semmler 2024-04-21 10:41:38 -04:00 committed by GitHub
parent 57589c082c
commit 0e0d6890ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ class LegoCharacterManager {
LegoExtraActor* GetActor(const char* p_key);
LegoCharacterData* GetData(const char* p_key);
LegoCharacterData* GetData(LegoROI* p_roi);
MxBool FUN_10084ec0(LegoROI* p_roi);
MxBool SwitchHat(LegoROI* p_roi);
MxU32 FUN_10085140(LegoROI* p_roi, MxBool p_und);
LegoROI* FUN_10085210(const char* p_name, const char* p_lodName, MxBool p_createEntity);
LegoROI* FUN_10085a80(const char* p_name, const char* p_lodName, MxBool p_createEntity);

View file

@ -644,7 +644,7 @@ LegoROI* LegoCharacterManager::FindChildROI(LegoROI* p_roi, const char* p_name)
}
// FUNCTION: LEGO1 0x10084ec0
MxBool LegoCharacterManager::FUN_10084ec0(LegoROI* p_roi)
MxBool LegoCharacterManager::SwitchHat(LegoROI* p_roi)
{
LegoCharacterData* data = GetData(p_roi->GetName());
@ -662,7 +662,7 @@ MxBool LegoCharacterManager::FUN_10084ec0(LegoROI* p_roi)
unk0x00 = part.m_unk0x00[part.m_unk0x08];
}
LegoROI* childROI = FindChildROI(p_roi, g_characterLODs[1].m_name);
LegoROI* childROI = FindChildROI(p_roi, g_characterLODs[2].m_name);
if (childROI != NULL) {
char lodName[256];

View file

@ -282,7 +282,7 @@ void LegoEntity::VTable0x3c()
{
switch (m_unk0x59) {
case 0:
CharacterManager()->FUN_10084ec0(m_roi);
CharacterManager()->SwitchHat(m_roi);
break;
case 2:
PlantManager()->FUN_100269e0(this);