From 9be8b33589fbed89342fd21fc50b07b3e6a01def Mon Sep 17 00:00:00 2001 From: Dominik Peters Date: Fri, 18 Apr 2025 16:38:56 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com> --- src/waves.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/waves.c b/src/waves.c index b2de375d..bbd6c011 100644 --- a/src/waves.c +++ b/src/waves.c @@ -925,12 +925,12 @@ void func_800BA4B8(TextureHeader *tex, s32 arg1) { texWidth = tex->width; var_a2 = 0; - if (texWidth == 0x10) { + if (texWidth == 16) { if (arg1 != 0) { var_a2 = 384; // 0x180 } sp5C = 4; - } else if (texWidth == 0x20) { + } else if (texWidth == 32) { sp5C = 5; if (arg1 != 0) { var_a2 = 256; // 0x100 @@ -943,7 +943,7 @@ void func_800BA4B8(TextureHeader *tex, s32 arg1) { } // difference is G_IM_SIZ_32b vs G_IM_SIZ_16b - if ((tex->format & 0xF) == 0) { + if ((tex->format & 0xF) == TEX_FORMAT_RGBA32) { gDPLoadMultiBlock(D_80129FC0++, OS_PHYSICAL_TO_K0(tex + 1), var_a2, arg1, G_IM_FMT_RGBA, G_IM_SIZ_32b, texWidth, texWidth, 0, 0, 0, sp5C, sp5C, 0, 0);