diff options
| author | Henny022p <73211432+Henny022p@users.noreply.github.com> | 2026-02-08 18:32:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 18:32:38 +0100 |
| commit | 5ab63f00e522ff69c5bc987e379f0163943f2833 (patch) | |
| tree | 53622222ac729c6ab6dc75ef7f9bafa8031daf18 /src/main.c | |
| parent | 73901a0a012d55ebb66a4627dcb246d19737fcb5 (diff) | |
| parent | 5b2cafdc894823d57beee8f3947a391d881d91de (diff) | |
Various code cleanup changes
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -6,13 +6,13 @@ #include "main.h" #include "common.h" -#include "functions.h" #include "game.h" #include "interrupts.h" #include "message.h" #include "save.h" #include "screen.h" #include "sound.h" +#include "fade.h" extern u32 gRand; @@ -283,10 +283,9 @@ u32 CheckRegionOnScreen(u32 x0, u32 y0, u32 x1, u32 y1) { * Iterate over array of AABBs and check if any fit on screen */ u32 CheckRegionsOnScreen(const u16* arr) { - const u16* i; - for (i = arr; *i != 0xff; i += 5) { - if (CheckRegionOnScreen(i[1], i[2], i[3], i[4])) - return *i; + for (; *arr != 0xff; arr += 5) { + if (CheckRegionOnScreen(arr[1], arr[2], arr[3], arr[4])) + return *arr; } return 0xff; } |
