mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
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:
+8
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user