Network/ENetPacket: Add OnAcknowledged signal

This commit is contained in:
SirLynix
2024-02-22 19:38:25 +01:00
parent f290cf2f9e
commit 62702ec481
2 changed files with 6 additions and 0 deletions

View File

@@ -1029,7 +1029,10 @@ namespace Nz
ENetProtocolCommand commandNumber = static_cast<ENetProtocolCommand>(currentCommand->command.header.command & ENetProtocolCommand_Mask);
if (currentCommand->packet && wasSent)
{
m_reliableDataInTransit -= currentCommand->fragmentLength;
currentCommand->packet->OnAcknowledged();
}
commandList->erase(currentCommand);