diff options
author | Deokishisu <6993375+Deokishisu@users.noreply.github.com> | 2021-06-03 12:45:59 -0400 |
---|---|---|
committer | Deokishisu <6993375+Deokishisu@users.noreply.github.com> | 2021-06-03 12:45:59 -0400 |
commit | 8e4320cc211da9d0ccd14a2b9c220cf85c05aeef (patch) | |
tree | dd73557d5f392e337696200898f5e86e56833917 /src/cable_club.c | |
parent | 753b19d0ea79b9637c0eb08b3f1b04b543fe90a0 (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/cable_club.c')
-rw-r--r-- | src/cable_club.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cable_club.c b/src/cable_club.c index c3de9dd26..791f04a07 100644 --- a/src/cable_club.c +++ b/src/cable_club.c @@ -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; |