Identify link sync buffers, separate from link action bytes

Fixes #803
This commit is contained in:
Rangi
2021-02-22 12:00:53 -05:00
parent 3c3d87e765
commit 4401d24074
3 changed files with 14 additions and 10 deletions

View File

@@ -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