summaryrefslogtreecommitdiff
path: root/src/code_8006E9C0.c
diff options
context:
space:
mode:
authorMegaMech <7255464+MegaMech@users.noreply.github.com>2024-12-06 07:18:21 -0700
committerMegaMech <7255464+MegaMech@users.noreply.github.com>2024-12-06 07:18:21 -0700
commite0e1d601816677fe695fbbb3edf0b48218c4a083 (patch)
treec85e40527a92d6611c604f469458072318e33847 /src/code_8006E9C0.c
parent19135c9ee83643ea863d5725c22319e502938cac (diff)
Fix minimap on custom courses
Diffstat (limited to 'src/code_8006E9C0.c')
-rw-r--r--src/code_8006E9C0.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c
index 48d4ddda6..91fe49ee4 100644
--- a/src/code_8006E9C0.c
+++ b/src/code_8006E9C0.c
@@ -162,8 +162,7 @@ void init_item_window(s32 objectIndex) {
}
void func_8006EEE8(s32 courseId) {
- D_8018D240 = (uintptr_t) dma_textures(CourseManager_GetProps()->MinimapTexture, D_800E5520[courseId],
- ResourceGetTexSizeByName(CourseManager_GetProps()->MinimapTexture));
+ D_8018D240 = (uintptr_t) CourseManager_GetProps()->MinimapTexture;
// This is incredibly dumb. D_800E5548 ought to be something more like
// `u16 D_800E5548[][2]` but that doesn't match for some insane reason
D_8018D2B0 = CourseManager_GetProps()->D_800E5548[0]; // D_800E5548[courseId * 2];
@@ -179,7 +178,7 @@ void func_8006EF60(void) {
wut = D_8018D9B4 + 0xFFFF0000;
// clang-format off
// God forgive me for my sins...
- huh = 0x14; if (0) {} for (i = 0; i < huh; i++) { D_8018D248[i] = func_8006ED94(CourseManager_GetProps()->MinimapTexture, wut, ResourceGetTexSizeByName(CourseManager_GetProps()->MinimapTexture), D_800E5520[i]); wut += D_800E5520[i]; }
+ huh = 0x14; if (0) {} for (i = 0; i < huh; i++) { D_8018D248[i] = CourseManager_GetProps()->MinimapTexture; wut += ResourceGetTexSizeByName(CourseManager_GetProps()->MinimapTexture); }
// clang-format on
}