mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Fix for Issue #111 for BitStream Issues
This commit is contained in:
parent
70415d0787
commit
1a3501440f
7 changed files with 18 additions and 15 deletions
|
|
@ -79,11 +79,11 @@ void ConnectionProtocol::buildSendPacketHeader(BitStream *stream, S32 packetType
|
|||
|
||||
stream->writeFlag(true);
|
||||
stream->writeInt(mConnectSequence & 1, 1);
|
||||
stream->writeInt(mLastSendSeq, 9);
|
||||
stream->writeInt(mLastSeqRecvd, 9);
|
||||
stream->writeInt(packetType, 2);
|
||||
stream->writeInt(ackByteCount, 3);
|
||||
stream->writeInt(mAckMask, ackByteCount * 8);
|
||||
stream->writeInt(mLastSendSeq & 0x1FF, 9);
|
||||
stream->writeInt(mLastSeqRecvd & 0x1FF, 9);
|
||||
stream->writeInt(packetType & 0x3, 2);
|
||||
stream->writeInt(ackByteCount & 0x7, 3);
|
||||
stream->writeInt(mAckMask & (~(0xFFFFFFFF << ackByteCount*8)), ackByteCount * 8);
|
||||
|
||||
// if we're resending this header, we can't advance the
|
||||
// sequence recieved (in case this packet drops and the prev one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue