mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
*Cleanup, proper indentation, and remove some wrong/irrelevant comments copied from custom patches..
--HG-- branch : trunk
This commit is contained in:
@@ -1013,7 +1013,7 @@ int WorldSocket::iSendPartialPacket(WorldPacket& pct)
|
||||
return 0; // nothing written, still remaining data => 0
|
||||
|
||||
m_Crypt.EncryptSend(header.header, header.getHeaderLength());
|
||||
|
||||
|
||||
if (m_OutBuffer->copy((char*) header.header, header.getHeaderLength()) == -1)
|
||||
return 0; // no space left. This should not happend. Just return 0 as nothing written and still remaining data
|
||||
|
||||
@@ -1033,10 +1033,9 @@ int WorldSocket::iSendPartialPacket(WorldPacket& pct)
|
||||
|
||||
if (m_OutBuffer->copy((char*) (pct.contents() + pct.rpos()), remainingLen) == -1)
|
||||
ACE_ASSERT (false);
|
||||
|
||||
|
||||
return 1; // some byte written and packet completed
|
||||
}
|
||||
|
||||
|
||||
bool WorldSocket::iFlushPacketQueue()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user