diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-05-03 18:20:20 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-05-03 18:20:20 -0600 |
| commit | 1fbf28a78d8b6dd8136aa628b5b1bc3d4c9b9223 (patch) | |
| tree | dd726cd42cc4f8d72c7f0f932104781bf84f5773 /src/code_800AF9B0.c | |
| parent | c78629d5b9b23fa93154bbf43352eaa24454f63c (diff) | |
Fixed more errors, we are rendering the logo, Yay
Diffstat (limited to 'src/code_800AF9B0.c')
| -rw-r--r-- | src/code_800AF9B0.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/code_800AF9B0.c b/src/code_800AF9B0.c index 361087020..faac24fc7 100644 --- a/src/code_800AF9B0.c +++ b/src/code_800AF9B0.c @@ -8,6 +8,7 @@ #include "memory.h" #include "main.h" #include "math_util.h" +#include <stdlib.h> /*** Data ***/ Ambient D_800E8680 = {{ @@ -32,8 +33,8 @@ Vtx *D_8018EDBC; #define SQ(x) ((x) * (x)) void func_800AF9B0(void) { - D_8018EDB8 = (void *)get_next_available_memory_addr(480 * sizeof(Vtx)); - D_8018EDBC = (void *)get_next_available_memory_addr(480 * sizeof(Vtx)); + D_8018EDB8 = (void *)calloc(480, sizeof(Vtx)); + D_8018EDBC = (void *)calloc(480, sizeof(Vtx)); } // could be a normal vertex, not a color... @@ -186,7 +187,7 @@ void func_800B0004(void) { for (j = 0; j < 12; j++) { res1 = sins(D_8018EDB0 - (j * D_8018EDB2)) * 84.0f * j * 0.18f; res2 = sins(D_8018EDB0 - ((j + 1) * D_8018EDB2)) * 84.0f * (j + 1) * 0.18f; - func_800AF9E4(&(&vtxs[j * 4])[i * 48], j, i, 84, res1, res2, (j * 84), 84); + func_800AF9E4(&vtxs[j * 4 + i * 48], j, i, 84, res1, res2, (j * 84), 84); } } func_800AFF58(vtxs); |
