diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2023-06-02 14:39:39 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 14:39:39 +1000 |
| commit | 4b25b4d8e655c5280fd42e5c99f3971ae9b5326b (patch) | |
| tree | 166fa44044ca69bc57e2f64ccb899365ec81df28 /src/boot_O2/padutils.c | |
| parent | 0261dc0a5c99ab87fed760c0cb81d1f7c4f9dc3b (diff) | |
Misc Cleanup 2 (#1260)
* more misc cleanup
* PR suggestions
* more abs alt, csId
* more cleanup, can't help it
* fix incorrect sq
* more fixes
Diffstat (limited to 'src/boot_O2/padutils.c')
| -rw-r--r-- | src/boot_O2/padutils.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/boot_O2/padutils.c b/src/boot_O2/padutils.c index 95f1dfa3b..accd09e11 100644 --- a/src/boot_O2/padutils.c +++ b/src/boot_O2/padutils.c @@ -66,11 +66,10 @@ s8 PadUtils_GetRelY(Input* input) { } void PadUtils_UpdateRelXY(Input* input) { - s32 curX, curY; - s32 relX, relY; - - curX = PadUtils_GetCurX(input); - curY = PadUtils_GetCurY(input); + s32 curX = PadUtils_GetCurX(input); + s32 curY = PadUtils_GetCurY(input); + s32 relX; + s32 relY; if (curX > 7) { relX = (curX < 0x43) ? curX - 7 : 0x43 - 7; |
