diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-10-15 22:44:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 22:44:49 -0400 |
commit | 1f39c34ca47e43b0afccaabe97d1df19e3f0b39b (patch) | |
tree | c3d4cac1627512d166440ead47d9f2285c8b4044 /src/berry_crush.c | |
parent | b01213b8bc0e4f82a0ab7505b4fe7db2e2d0ddf2 (diff) | |
parent | a4a3c1c9e5a0026415330eab9bea2f8f3e83e0a3 (diff) |
Merge branch 'master' into minor-constants
Diffstat (limited to 'src/berry_crush.c')
-rwxr-xr-x | src/berry_crush.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/berry_crush.c b/src/berry_crush.c index 5c571778f..dcd7363bd 100755 --- a/src/berry_crush.c +++ b/src/berry_crush.c @@ -984,12 +984,12 @@ static u32 QuitBerryCrush(MainCallback exitCallback) return 0; } -#define ERROR_EXIT(exitCallback) \ - { \ - SetMainCallback2(exitCallback); \ - Rfu.unk_10 = 0; \ - Rfu.unk_12 = 0; \ - Rfu.errorState = 1; \ +#define ERROR_EXIT(exitCallback) \ + { \ + SetMainCallback2(exitCallback); \ + gRfu.errorParam0 = 0; \ + gRfu.errorParam1 = 0; \ + gRfu.errorState = RFU_ERROR_STATE_OCCURRED; \ } void StartBerryCrush(MainCallback exitCallback) @@ -2565,7 +2565,7 @@ static void HandlePartnerInput(struct BerryCrushGame *game) linkState = (struct BerryCrushGame_LinkState *)gRecvCmds[i]; // Skip player if we have not received a packet from them - if ((linkState->rfuCmd & 0xFF00) != RFUCMD_SEND_PACKET) + if ((linkState->rfuCmd & RFUCMD_MASK) != RFUCMD_SEND_PACKET) continue; if (linkState->sendFlag != SEND_GAME_STATE) continue; @@ -2805,7 +2805,7 @@ static void RecvLinkData(struct BerryCrushGame *game) for (i = 0; i < game->playerCount; i++) game->players[i].inputState = INPUT_STATE_NONE; - if ((gRecvCmds[0][0] & 0xFF00) != RFUCMD_SEND_PACKET) + if ((gRecvCmds[0][0] & RFUCMD_MASK) != RFUCMD_SEND_PACKET) { game->playedSound = FALSE; return; |