summaryrefslogtreecommitdiff
path: root/src/link_rfu_2.c
diff options
context:
space:
mode:
authorDeokishisu <6993375+Deokishisu@users.noreply.github.com>2021-06-03 12:45:59 -0400
committerDeokishisu <6993375+Deokishisu@users.noreply.github.com>2021-06-03 12:45:59 -0400
commit8e4320cc211da9d0ccd14a2b9c220cf85c05aeef (patch)
treedd73557d5f392e337696200898f5e86e56833917 /src/link_rfu_2.c
parent753b19d0ea79b9637c0eb08b3f1b04b543fe90a0 (diff)
Sync LinkPlayer Struct with pokeemerald
In pokefirered, the `LinkPlayer` struct used an 11-byte name field and puts extra link-related info in the last three bytes. pokeemerald separates these last three bytes into their own fields. This commit replicates how pokeemerald handles those fields. Also renamed `IntlConvertLinkPlayerName` to pokeemerald's `ConvertLinkPlayerName` because I was there and noticed it.
Diffstat (limited to 'src/link_rfu_2.c')
-rw-r--r--src/link_rfu_2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link_rfu_2.c b/src/link_rfu_2.c
index 76db5d1b0..d2c605d7b 100644
--- a/src/link_rfu_2.c
+++ b/src/link_rfu_2.c
@@ -1769,7 +1769,7 @@ static void ReceiveRfuLinkPlayers(const struct SioInfo *chunk)
for (i = 0; i < MAX_RFU_PLAYERS; i++)
{
gLinkPlayers[i] = chunk->linkPlayers[i];
- IntlConvertLinkPlayerName(gLinkPlayers + i);
+ ConvertLinkPlayerName(gLinkPlayers + i);
}
}
@@ -1814,7 +1814,7 @@ static void Task_ExchangeLinkPlayers(u8 taskId)
ResetBlockReceivedFlag(r4);
r2 = (struct LinkPlayerBlock *)gBlockRecvBuffer[r4];
gLinkPlayers[r4] = r2->linkPlayer;
- IntlConvertLinkPlayerName(gLinkPlayers + r4);
+ ConvertLinkPlayerName(gLinkPlayers + r4);
gTasks[taskId].data[0]++;
}
break;