From bb88e045d10b704bfb6e86f142975016b3329eed Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 22 Feb 2021 12:39:49 -0500 Subject: Identify link sync buffers, separate from link action bytes --- engine/link/link.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine') diff --git a/engine/link/link.asm b/engine/link/link.asm index 3dc46e50..c28330f4 100644 --- a/engine/link/link.asm +++ b/engine/link/link.asm @@ -2379,20 +2379,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 -- cgit v1.2.3