Update pauseMenu.c

fighting with the lint system
This commit is contained in:
Lemeon 2024-01-21 20:59:59 +01:00 committed by GitHub
parent cf72e7b2d3
commit 299ca4abd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 10 deletions

View File

@ -1232,8 +1232,8 @@ bool32 sub_080A5F24(void) {
return result;
}
typedef union{
struct{
typedef union {
struct {
s32 v1;
s32 v2;
} values;
@ -1243,8 +1243,8 @@ typedef union{
void sub_080A5F48(Item item, u32 offset) {
// this funcitons signature allows the div function to return a u64 (2x 32 bit registers)
// with the result in one register and the remainder in the other
typedef u64 DivRem (u32, u32);
typedef u64 DivRem(u32, u32);
s32 ammoCount;
s32 onesDigit;
s32 tensDigit;
@ -1260,7 +1260,7 @@ void sub_080A5F48(Item item, u32 offset) {
case ITEM_BOTTLE4:
item = gSave.stats.bottles[item - ITEM_BOTTLE1];
}
dest = OBJ_VRAM0 + (offset * 0x20);
index = gSpriteAnimations_322[item]->index;
temp2 = &gMoreSpritePtrs[1][index * 2];
@ -1278,14 +1278,14 @@ void sub_080A5F48(Item item, u32 offset) {
break;
}
if (ammoCount < 0)
return;
ret.raw = ((DivRem*)Div)(ammoCount,10); // by casting to DivRem, we can recover the remainder from the Div call
if (ammoCount < 0)
return;
ret.raw = ((DivRem*)Div)(ammoCount, 10); // by casting to DivRem, we can recover the remainder from the Div call
onesDigit = ret.values.v2;
tensDigit = ret.values.v1;
if (tensDigit >= 10)
if (tensDigit >= 10)
tensDigit = 9;
DmaCopy32(3, gUnk_085C4620 + tensDigit * 0x8, dest, 0x8 * 4);