Added an XYStruct

This commit is contained in:
Ryan Myers
2022-02-17 21:13:18 -05:00
parent c18c98b1a3
commit 3bb1537136
2 changed files with 21 additions and 17 deletions
+17 -17
View File
@@ -121,17 +121,17 @@ s32 D_800E2E5C = 0;
Sprite **D_800E2E60 = NULL;
s32 D_800E2E64 = 0;
s16 D_800E2E68[6] = {
0, 8,
7, -4,
-7, -4,
XYStruct D_800E2E68[3] = {
{ 0, 8 },
{ 7, -4 },
{ -7, -4 },
};
s16 D_800E2E74[8] = {
-6, 6,
6, 6,
6, -6,
-6, -6,
XYStruct D_800E2E74[4] = {
{ -6, 6 },
{ 6, 6 },
{ 6, -6 },
{ -6, -6 },
};
s32 D_800E2E84[16] = {
@@ -299,16 +299,16 @@ void func_800AEE14(unk800AF024 *arg0, Vertex **arg1, Triangle **arg2) {
s16 i;
Vertex *temp;
Triangle *tri;
s16 *temp2;
XYStruct *temp2;
arg0->unk4 = 3;
arg0->unk8 = *arg1;
temp = *arg1;
temp2 = &D_800E2E68[0];
for (i = 0; i < 3; i++) {
temp->x = temp2[0];
temp->y = temp2[1];
temp2 += 2;
temp->x = temp2->x;
temp->y = temp2->y;
temp2 += 1;
temp->z = 0;
temp->r = 255;
temp->g = 255;
@@ -332,16 +332,16 @@ void func_800AEEB8(unk800AF024 *arg0, Vertex **arg1, Triangle **arg2) {
s16 i;
Vertex *temp;
Triangle *tri;
s16 *temp2;
XYStruct *temp2;
arg0->unk4 = 4;
arg0->unk8 = *arg1;
temp = *arg1;
temp2 = &D_800E2E74[0];
for (i = 0; i < 4; i++) {
temp->x = temp2[0];
temp->y = temp2[1];
temp2 += 2;
temp->x = temp2->x;
temp->y = temp2->y;
temp2 += 1;
temp->z = 0;
temp->r = 255;
temp->g = 255;
+4
View File
@@ -109,6 +109,10 @@ typedef struct unk800B2260 {
unk800B2260_C **unkC;
} unk800B2260;
typedef struct XYStruct {
s16 x, y;
} XYStruct;
void func_800AE270(void);
void func_800AE2A0(void);
void func_800AE2D8(void);