Match func_80026430 and fix UB in func_80026070 (#516)

* Score and formatting

* Fix UB for func_80026070, and get func_80026430 to NON_EQ

* func_80026430 near match

* documenting

* Single diff for func_80026430

* Match func_80026430

* Update score and merge master

* Rework func_80026430 to have an AVOID_UB.
This commit is contained in:
Ryan Myers
2025-04-16 15:27:28 -04:00
committed by GitHub
parent a2636b9708
commit a298ec5b5f
5 changed files with 165 additions and 41 deletions
+8 -1
View File
@@ -666,6 +666,13 @@ typedef struct ObjectModel {
/* 0x54 */ u8 pad[0x2C];
} ObjectModel;
typedef struct CollisionNode {
u16 triangleIndex; // This triangle index
u16 closestTri01; // The closest triangle index to the line made from indices 0 & 1.
u16 closestTri12; // The closest triangle index to the line made from indices 1 & 2.
u16 closestTri20; // The closest triangle index to the line made from indices 2 & 0.
} CollisionNode;
/* Size: 0x44 bytes */
typedef struct LevelModelSegment {
/* 0x00 */ Vertex *vertices;
@@ -673,7 +680,7 @@ typedef struct LevelModelSegment {
/* 0x08 */ s32 unk8;
/* 0x0C */ TriangleBatchInfo *batches;
/* 0x10 */ s16 *unk10;
/* 0x14 */ u16 *unk14;
/* 0x14 */ CollisionNode *unk14;
/* 0x18 */ f32 *unk18;
/* 0x1C */ s16 numberOfVertices;
/* 0x1E */ s16 numberOfTriangles;