@@ -2554,20 +2554,20 @@ Link_ResetSerialRegistersAfterLinkClosure:
|
||||
|
||||
Link_EnsureSync:
|
||||
add $d0
|
||||
ld [wPlayerLinkAction], a
|
||||
ld [wUnusedLinkAction], a
|
||||
ld [wLinkPlayerSyncBuffer], a
|
||||
ld [wLinkPlayerSyncBuffer + 1], a
|
||||
ld a, $2
|
||||
ldh [hVBlank], a
|
||||
call DelayFrame
|
||||
call DelayFrame
|
||||
.receive_loop
|
||||
call Serial_ExchangeLinkMenuSelection
|
||||
ld a, [wOtherPlayerLinkMode]
|
||||
call Serial_ExchangeSyncBytes
|
||||
ld a, [wLinkReceivedSyncBuffer]
|
||||
ld b, a
|
||||
and $f0
|
||||
cp $d0
|
||||
jr z, .done
|
||||
ld a, [wOtherPlayerLinkAction]
|
||||
ld a, [wLinkReceivedSyncBuffer + 1]
|
||||
ld b, a
|
||||
and $f0
|
||||
cp $d0
|
||||
|
Reference in New Issue
Block a user