This commit is contained in:
Christian Semmler 2024-03-26 13:43:17 -04:00
parent 528d647b79
commit 4c429af755
4 changed files with 11 additions and 8 deletions

View File

@ -21,9 +21,10 @@ LegoWEEdge::~LegoWEEdge()
// FUNCTION: LEGO1 0x1009a5b0 // FUNCTION: LEGO1 0x1009a5b0
LegoResult LegoWEEdge::VTable0x04() LegoResult LegoWEEdge::VTable0x04()
{ {
for (int i = 0; i < m_numEdges; i++) { for (LegoS32 i = 0; i < m_numEdges; i++) {
Edge* e1 = m_edges[i]; Edge* e1 = m_edges[i];
Edge* e2 = (m_numEdges - i) == 1 ? m_edges[0] : m_edges[i + 1]; Edge* e2 = (m_numEdges - i) == 1 ? m_edges[0] : m_edges[i + 1];
if (e2->m_pointA == e1->m_pointA) { if (e2->m_pointA == e1->m_pointA) {
e1->m_faceA = this; e1->m_faceA = this;
e2->m_faceB = this; e2->m_faceB = this;
@ -49,5 +50,6 @@ LegoResult LegoWEEdge::VTable0x04()
e2->m_cwA = e1; e2->m_cwA = e1;
} }
} }
return SUCCESS; return SUCCESS;
} }

View File

@ -8,7 +8,6 @@ class LegoWEEdge;
// SIZE 0x24 // SIZE 0x24
struct Edge { struct Edge {
public:
undefined4 m_unk0x00; // 0x00 undefined4 m_unk0x00; // 0x00
LegoWEEdge* m_faceA; // 0x04 LegoWEEdge* m_faceA; // 0x04
LegoWEEdge* m_faceB; // 0x08 LegoWEEdge* m_faceB; // 0x08
@ -16,8 +15,8 @@ struct Edge {
Edge* m_cwA; // 0x10 Edge* m_cwA; // 0x10
Edge* m_ccwB; // 0x14 Edge* m_ccwB; // 0x14
Edge* m_cwB; // 0x18 Edge* m_cwB; // 0x18
void* m_pointA; // 0x1c undefined* m_pointA; // 0x1c
void* m_pointB; // 0x20 undefined* m_pointB; // 0x20
}; };
// VTABLE: LEGO1 0x100db7c0 // VTABLE: LEGO1 0x100db7c0
@ -25,7 +24,8 @@ struct Edge {
class LegoWEEdge { class LegoWEEdge {
public: public:
LegoWEEdge(); LegoWEEdge();
virtual ~LegoWEEdge(); // vtable+0x00 virtual ~LegoWEEdge();
virtual LegoResult VTable0x04(); // vtable+0x04 virtual LegoResult VTable0x04(); // vtable+0x04
// SYNTHETIC: LEGO1 0x1009a570 // SYNTHETIC: LEGO1 0x1009a570

View File

@ -11,8 +11,8 @@ LegoWEGEdge::LegoWEGEdge()
m_edgeNormals = NULL; m_edgeNormals = NULL;
m_unk0x0c = 0; m_unk0x0c = 0;
m_unk0x48 = 0; m_unk0x48 = 0;
m_unk0x4c = 0; m_unk0x4c = NULL;
m_unk0x50 = 0; m_unk0x50 = NULL;
} }
// FUNCTION: LEGO1 0x1009a800 // FUNCTION: LEGO1 0x1009a800

View File

@ -10,7 +10,8 @@
class LegoWEGEdge : public LegoWEEdge { class LegoWEGEdge : public LegoWEEdge {
public: public:
LegoWEGEdge(); LegoWEGEdge();
~LegoWEGEdge() override; // vtable+0x00 ~LegoWEGEdge() override;
LegoResult VTable0x04() override; // vtable+0x04 LegoResult VTable0x04() override; // vtable+0x04
inline LegoU32 GetFlag0x10() { return m_unk0x0c & 0x10 ? FALSE : TRUE; } inline LegoU32 GetFlag0x10() { return m_unk0x0c & 0x10 ? FALSE : TRUE; }