Clean up mystery gift sync, document wonder news

This commit is contained in:
GriffinR
2022-11-21 23:52:11 -05:00
parent 76c3b014d8
commit a19cb44458
17 changed files with 212 additions and 189 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ void MysteryGiftLink_InitSend(struct MysteryGiftLink * link, u32 ident, const vo
if (size != 0)
link->sendSize = size;
else
link->sendSize = ME_SEND_BUF_SIZE;
link->sendSize = MG_LINK_BUFFER_SIZE;
link->sendBuffer = src;
}
@@ -99,7 +99,7 @@ static bool32 MGL_Receive(struct MysteryGiftLink * link)
MGL_ReceiveBlock(link->recvPlayerId, &header, sizeof(header));
link->recvSize = header.size;
link->recvCRC = header.crc;
if (link->recvSize > ME_SEND_BUF_SIZE)
if (link->recvSize > MG_LINK_BUFFER_SIZE)
{
LinkRfu_FatalError();
return FALSE;
@@ -167,7 +167,7 @@ static bool32 MGL_Send(struct MysteryGiftLink * link)
link->sendCRC = header.crc;
link->sendCounter = 0;
SendBlock(0, &header, sizeof(header));
++link->state;
link->state++;
}
break;
case 1: