mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-18 03:43:54 -05:00
Implement Act2Actor::VTable0x9c()
(#1186)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
parent
aaf5e1ddc7
commit
3c624ff14c
1 changed files with 20 additions and 3 deletions
|
@ -91,11 +91,28 @@ MxResult Act2Actor::VTable0x94(LegoPathActor*, MxBool)
|
|||
return SUCCESS;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10018a20
|
||||
// FUNCTION: LEGO1 0x10018a20
|
||||
MxResult Act2Actor::VTable0x9c()
|
||||
{
|
||||
// TODO
|
||||
if (m_grec && !(m_grec->m_flags & LegoPathEdgeContainer::c_bit1)) {
|
||||
delete m_grec;
|
||||
m_grec = NULL;
|
||||
return SUCCESS;
|
||||
}
|
||||
else {
|
||||
if (m_unk0x1f) {
|
||||
MxMatrix matrix = m_roi->GetLocal2World();
|
||||
matrix[3][1] -= 3.0f;
|
||||
m_roi->UpdateTransformationRelativeToParent(matrix);
|
||||
|
||||
LegoROI* brickstrROI = FindROI("brickstr");
|
||||
MxMatrix brickstrMatrix = brickstrROI->GetLocal2World();
|
||||
brickstrMatrix[3][1] -= 3.0f;
|
||||
brickstrROI->UpdateTransformationRelativeToParent(brickstrMatrix);
|
||||
}
|
||||
|
||||
return LegoPathActor::VTable0x9c();
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10018c30
|
||||
|
|
Loading…
Reference in a new issue