1
0
Fork 0
mirror of https://github.com/isledecomp/isle.git synced 2025-03-27 23:20:32 -04:00

Match LegoHideAnimPresenter::FUN_1006db60 ()

* Match `LegoHideAnimPresenter::FUN_1006db60`

* Remove comment
This commit is contained in:
Christian Semmler 2025-03-16 14:57:23 -07:00 committed by GitHub
parent 401fa7674e
commit e9467864d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 3 deletions
LEGO1/lego
legoomni/src/video
sources

View file

@ -118,8 +118,7 @@ void LegoHideAnimPresenter::FUN_1006db60(LegoTreeNode* p_node, LegoTime p_time)
if (boundary != NULL) {
newB = data->FUN_100a0990(p_time);
boundary->GetFlag0x10();
// TODO: Match
previousB = boundary->GetFlag0x10();
boundary->SetFlag0x10(newB);
}
}

View file

@ -189,6 +189,7 @@ public:
// FUNCTION: BETA10 0x1005abc0
LegoU16 GetUnknown0x20() { return m_unk0x20; }
// FUNCTION: BETA10 0x1005d5c0
LegoU16 GetUnknown0x22() { return m_unk0x22; }
// FUNCTION: BETA10 0x10073b80
@ -222,6 +223,8 @@ public:
{
return CreateLocalTransform((LegoFloat) p_time, p_matrix);
}
// FUNCTION: BETA10 0x1005d580
LegoBool FUN_100a0990(LegoTime p_time) { return FUN_100a0990((LegoFloat) p_time); }
inline static void GetTranslation(

View file

@ -45,7 +45,15 @@ public:
LegoS32 VTable0x04() override; // vtable+0x04
// FUNCTION: BETA10 0x100270c0
LegoU32 GetFlag0x10() { return m_flags & c_bit5 ? FALSE : TRUE; }
LegoU32 GetFlag0x10()
{
if (m_flags & c_bit5) {
return FALSE;
}
else {
return TRUE;
}
}
// TODO: Other BETA10 reference at 0x1001c9e0, not sure what is going on
// FUNCTION: BETA10 0x1001ff80
@ -57,6 +65,7 @@ public:
// FUNCTION: BETA10 0x1001c9b0
const LegoChar* GetName() { return m_name; }
// FUNCTION: BETA10 0x1005d5f0
void SetFlag0x10(LegoU32 p_disable)
{
if (p_disable) {