mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Implement/match LegoPathStruct (#944)
* Implement/match LegoPathStruct * Rename some nums * Consistent naming * Naming * relax regex * Name some functions * Improve naming * Rename
This commit is contained in:

committed by
GitHub

parent
bc91fd2189
commit
8fee73c525
@@ -61,19 +61,19 @@ void LegoPathBoundary::FUN_100575b0(Vector3& p_point1, Vector3& p_point2, LegoPa
|
||||
|
||||
if (dot2 > dot1) {
|
||||
for (MxS32 i = 0; i < m_unk0x48; i++) {
|
||||
LegoPathStruct* s = m_unk0x4c[i].m_unk0x00;
|
||||
LegoPathStruct* s = m_unk0x4c[i].m_pathStruct;
|
||||
|
||||
if (m_unk0x4c[i].m_unk0x08 >= dot1 && m_unk0x4c[i].m_unk0x08 < dot2) {
|
||||
s->VTable0x04(p_actor, 1, m_unk0x4c[i].m_unk0x04);
|
||||
s->HandleTrigger(p_actor, TRUE, m_unk0x4c[i].m_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dot2 < dot1) {
|
||||
for (MxS32 i = 0; i < m_unk0x48; i++) {
|
||||
LegoPathStruct* s = m_unk0x4c[i].m_unk0x00;
|
||||
LegoPathStruct* s = m_unk0x4c[i].m_pathStruct;
|
||||
|
||||
if (m_unk0x4c[i].m_unk0x08 >= dot2 && m_unk0x4c[i].m_unk0x08 < dot1) {
|
||||
s->VTable0x04(p_actor, 0, m_unk0x4c[i].m_unk0x04);
|
||||
s->HandleTrigger(p_actor, FALSE, m_unk0x4c[i].m_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user