Nazara/Network: ENetHost::GetTotalReceivedPackets now returns the number of commands received
This commit is contained in:
@@ -211,6 +211,7 @@ Nazara Engine:
|
||||
- String::Number is now locale-independent
|
||||
- Added ENetPeer::GetTotalByte[Received|Sent]
|
||||
- Added ENetPeer::GetTotalPacketSent
|
||||
- ⚠ ENetHost::GetTotalReceivedPackets now returns the number of commands received (instead of the number of UDP packets received)
|
||||
|
||||
Nazara Development Kit:
|
||||
- Added ImageWidget (#139)
|
||||
|
||||
@@ -658,6 +658,7 @@ namespace Nz
|
||||
return commandError();
|
||||
}
|
||||
|
||||
m_totalReceivedPackets++;
|
||||
if (peer)
|
||||
peer->m_totalPacketReceived++;
|
||||
|
||||
@@ -754,7 +755,6 @@ namespace Nz
|
||||
m_receivedDataLength = receivedLength;
|
||||
|
||||
m_totalReceivedData += receivedLength;
|
||||
m_totalReceivedPackets++;
|
||||
|
||||
// Intercept
|
||||
|
||||
|
||||
Reference in New Issue
Block a user