summaryrefslogtreecommitdiff
path: root/src/code/z_message.c
diff options
context:
space:
mode:
authorengineer124 <engineer124engineer124@gmail.com>2022-06-20 21:14:44 +1000
committerengineer124 <engineer124engineer124@gmail.com>2022-06-20 21:14:44 +1000
commite4904450de37de36c1fa3d203d02bf8dfaed152a (patch)
tree8a0c65f248cbe1676c46f926a7463631874f8863 /src/code/z_message.c
parent8df8271d6c84a235d91758d4a25bebd95ccb3c21 (diff)
parent37d3934e2c6866185b3ba76bad40224336a7a1f9 (diff)
Merge branch 'master' into parameter
Diffstat (limited to 'src/code/z_message.c')
-rw-r--r--src/code/z_message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_message.c b/src/code/z_message.c
index 96ce89379..104a1bfa9 100644
--- a/src/code/z_message.c
+++ b/src/code/z_message.c
@@ -67,7 +67,7 @@ void func_80147564(GlobalContext* globalCtx) {
s32 Message_ShouldAdvance(GlobalContext* globalCtx) {
MessageContext* msgCtx = &globalCtx->msgCtx;
- Input* controller = CONTROLLER1(globalCtx);
+ Input* controller = CONTROLLER1(&globalCtx->state);
if ((msgCtx->unk12020 == 0x10) || (msgCtx->unk12020 == 0x11)) {
if (CHECK_BTN_ALL(controller->press.button, BTN_A)) {
@@ -86,7 +86,7 @@ s32 Message_ShouldAdvance(GlobalContext* globalCtx) {
s32 Message_ShouldAdvanceSilent(GlobalContext* globalCtx) {
MessageContext* msgCtx = &globalCtx->msgCtx;
- Input* controller = CONTROLLER1(globalCtx);
+ Input* controller = CONTROLLER1(&globalCtx->state);
if (msgCtx->unk12020 == 0x10 || msgCtx->unk12020 == 0x11) {
return CHECK_BTN_ALL(controller->press.button, BTN_A);
@@ -117,7 +117,7 @@ void func_801477B4(GlobalContext* globalCtx) {
void func_80148B98(GlobalContext* globalCtx, u8 arg1) {
static s16 held = 0;
MessageContext* msgCtx = &globalCtx->msgCtx;
- Input* curInput = CONTROLLER1(globalCtx);
+ Input* curInput = CONTROLLER1(&globalCtx->state);
if ((curInput->rel.stick_y > 29) && held == 0) {
held = 1;