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.
This commit is contained in:
Deokishisu
2021-06-03 12:45:59 -04:00
parent 753b19d0ea
commit 8e4320cc21
5 changed files with 20 additions and 17 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ static void Task_StartWirelessCableClubBattle(u8 taskId)
for (i = 0; i < GetLinkPlayerCount(); i++)
{
gLinkPlayers[i] = *(struct LinkPlayer *)gBlockRecvBuffer[i];
IntlConvertLinkPlayerName(&gLinkPlayers[i]);
ConvertLinkPlayerName(&gLinkPlayers[i]);
ResetBlockReceivedFlag(i);
}
data[0] = 4;