summaryrefslogtreecommitdiff
path: root/home/serial.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-02-22 12:00:53 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-02-22 12:02:52 -0500
commit4401d24074913b227ed246da02343cd875ee9fc0 (patch)
treeadfc2168bd2006b293984f68ecd1afaff2c95b42 /home/serial.asm
parent3c3d87e765ffa17926b6a94bc061bb2dafc859e2 (diff)
Identify link sync buffers, separate from link action bytes
Fixes #803
Diffstat (limited to 'home/serial.asm')
-rw-r--r--home/serial.asm9
1 files changed, 4 insertions, 5 deletions
diff --git a/home/serial.asm b/home/serial.asm
index c5394355e..20a9aff72 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -252,11 +252,10 @@ SerialDisconnected::
ld [wLinkTimeoutFrames + 1], a
ret
-; This is used to exchange the button press and selected menu item on the link menu.
-; The data is sent thrice and read twice to increase reliability.
-Serial_ExchangeLinkMenuSelection::
- ld hl, wPlayerLinkAction
- ld de, wOtherPlayerLinkMode
+; This is used to check that both players entered the same Cable Club room.
+Serial_ExchangeSyncBytes::
+ ld hl, wLinkPlayerSyncBuffer
+ ld de, wLinkReceivedSyncBuffer
ld c, 2
ld a, TRUE
ldh [hSerialIgnoringInitialData], a