summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-10-23 21:44:45 -0300
committerGitHub <noreply@github.com>2021-10-23 20:44:45 -0400
commit9b89ec5fac324f7204cda20ebc4f8527ee49b856 (patch)
treee08905685b80c5e41abbe3808a3030554c5d7a81 /src/code/z_debug.c
parent4b10b22baabfaf1753d7d7cc2d7339579ee05ed6 (diff)
Document `ovl_select` (#966)
* Some renames * Some renames * Some more renames * pageDown * Last name update * Translate scene entries * formatter * Review * A bunch of suggestions * Run formatter * Roman's suggestions
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 21b0fee3e..55eedb17f 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -151,19 +151,15 @@ void func_8006390C(Input* input) {
gGameInfo->dpadLast = dpad;
}
- increment = CHECK_BTN_ANY(dpad, BTN_DRIGHT)
- ? (CHECK_BTN_ALL(input->cur.button, BTN_A | BTN_B)
- ? 1000
- : CHECK_BTN_ALL(input->cur.button, BTN_A)
- ? 100
- : CHECK_BTN_ALL(input->cur.button, BTN_B) ? 10 : 1)
- : CHECK_BTN_ANY(dpad, BTN_DLEFT)
- ? (CHECK_BTN_ALL(input->cur.button, BTN_A | BTN_B)
- ? -1000
- : CHECK_BTN_ALL(input->cur.button, BTN_A)
- ? -100
- : CHECK_BTN_ALL(input->cur.button, BTN_B) ? -10 : -1)
- : 0;
+ increment = CHECK_BTN_ANY(dpad, BTN_DRIGHT) ? (CHECK_BTN_ALL(input->cur.button, BTN_A | BTN_B) ? 1000
+ : CHECK_BTN_ALL(input->cur.button, BTN_A) ? 100
+ : CHECK_BTN_ALL(input->cur.button, BTN_B) ? 10
+ : 1)
+ : CHECK_BTN_ANY(dpad, BTN_DLEFT) ? (CHECK_BTN_ALL(input->cur.button, BTN_A | BTN_B) ? -1000
+ : CHECK_BTN_ALL(input->cur.button, BTN_A) ? -100
+ : CHECK_BTN_ALL(input->cur.button, BTN_B) ? -10
+ : -1)
+ : 0;
gGameInfo->data[gGameInfo->regCur + regGroup] += increment;
if (CHECK_BTN_ANY(dpad, BTN_DUP)) {