Implement/match LegoCharacterManager::FUN_10083b20 and FUN_10085180 (#902)

This commit is contained in:
Christian Semmler
2024-05-11 08:13:27 -04:00
committed by GitHub
parent d9a82323ca
commit c77dd44105
3 changed files with 19 additions and 9 deletions

View File

@@ -1669,7 +1669,7 @@ void LegoAnimationManager::AddExtra(MxS32 p_location, MxBool p_und)
active = rand() % 100 < 50;
}
nextCharacter:
tryNextCharacter:
if (g_characters[m_lastExtraCharacterId].m_unk0x09 &&
g_characters[m_lastExtraCharacterId].m_unk0x08 &&
!g_characters[m_lastExtraCharacterId].m_unk0x04 &&
@@ -1708,7 +1708,6 @@ void LegoAnimationManager::AddExtra(MxS32 p_location, MxBool p_und)
boundary->m_dest,
boundary->m_destScale
) == SUCCESS) {
MxS32 vehicleId = g_characters[m_lastExtraCharacterId].m_vehicleId;
if (vehicleId >= 0) {
g_vehicles[vehicleId].m_unk0x04 =
@@ -1764,7 +1763,7 @@ void LegoAnimationManager::AddExtra(MxS32 p_location, MxBool p_und)
return;
}
goto nextCharacter;
goto tryNextCharacter;
}
}
}