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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user