ref: 354fefaefbba77a3408fa9edb5cc4393b9c702ab
parent: a1e711b80dbd652cdf3b89811f7539d93782b0b5
author: mid-kid <esteve.varela@gmail.com>
date: Fri Mar 31 23:29:33 EDT 2023
Use time capsule label for time capsule copies
--- a/engine/link/link.asm
+++ b/engine/link/link.asm
@@ -122,11 +122,11 @@
jp nc, ExitLinkCommunications
ld de, wLinkData
- ld bc, NAME_LENGTH + 1 + PARTY_LENGTH + 1 + (REDMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3
+ ld bc, NAME_LENGTH + (1 + PARTY_LENGTH + 1) + (REDMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3
call Link_CopyOTData
ld de, wOTPatchLists
- ld hl, wLinkPlayerData
+ ld hl, wTimeCapsulePlayerData
ld c, 2
.loop
ld a, [de]
@@ -152,7 +152,7 @@
jr .loop
.next
- ld hl, wLinkPlayerData + SERIAL_PATCH_DATA_SIZE
+ ld hl, wTimeCapsulePlayerData + SERIAL_PATCH_DATA_SIZE
dec c
jr nz, .loop