mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 01:28:30 -05:00
Fix SwitchHat (#835)
This commit is contained in:
parent
57589c082c
commit
0e0d6890ad
3 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ class LegoCharacterManager {
|
||||||
LegoExtraActor* GetActor(const char* p_key);
|
LegoExtraActor* GetActor(const char* p_key);
|
||||||
LegoCharacterData* GetData(const char* p_key);
|
LegoCharacterData* GetData(const char* p_key);
|
||||||
LegoCharacterData* GetData(LegoROI* p_roi);
|
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);
|
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_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);
|
LegoROI* FUN_10085a80(const char* p_name, const char* p_lodName, MxBool p_createEntity);
|
||||||
|
|
|
@ -644,7 +644,7 @@ LegoROI* LegoCharacterManager::FindChildROI(LegoROI* p_roi, const char* p_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10084ec0
|
// FUNCTION: LEGO1 0x10084ec0
|
||||||
MxBool LegoCharacterManager::FUN_10084ec0(LegoROI* p_roi)
|
MxBool LegoCharacterManager::SwitchHat(LegoROI* p_roi)
|
||||||
{
|
{
|
||||||
LegoCharacterData* data = GetData(p_roi->GetName());
|
LegoCharacterData* data = GetData(p_roi->GetName());
|
||||||
|
|
||||||
|
@ -662,7 +662,7 @@ MxBool LegoCharacterManager::FUN_10084ec0(LegoROI* p_roi)
|
||||||
unk0x00 = part.m_unk0x00[part.m_unk0x08];
|
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) {
|
if (childROI != NULL) {
|
||||||
char lodName[256];
|
char lodName[256];
|
||||||
|
|
|
@ -282,7 +282,7 @@ void LegoEntity::VTable0x3c()
|
||||||
{
|
{
|
||||||
switch (m_unk0x59) {
|
switch (m_unk0x59) {
|
||||||
case 0:
|
case 0:
|
||||||
CharacterManager()->FUN_10084ec0(m_roi);
|
CharacterManager()->SwitchHat(m_roi);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
PlantManager()->FUN_100269e0(this);
|
PlantManager()->FUN_100269e0(this);
|
||||||
|
|
Loading…
Reference in a new issue