summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 55eedb17f..21b0fee3e 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -151,15 +151,19 @@ 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)) {