summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
authorEthan Roseman <ethteck@gmail.com>2020-12-09 06:39:41 +0900
committerGitHub <noreply@github.com>2020-12-08 16:39:41 -0500
commit96512ee3abd93538433f2c21ac89e64c95e491cf (patch)
tree87b52ef047ef91934c4ee5b25911138d926fb218 /src/code/z_debug.c
parent353684c63863266ef1f3f680312ef424b75c0a70 (diff)
Decompiled ovl_En_Ta (#518)
* First steps * more * done * format * PR comments * PR comments
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 91137e190..e585edc73 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -151,19 +151,16 @@ 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)) {