mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 08:54:26 +02:00
removed spaces before comments in OctreeInboundPacketProcessor
This commit is contained in:
parent
7cef5eeeec
commit
d78ed66616
1 changed files with 4 additions and 4 deletions
|
@ -274,9 +274,9 @@ void SingleSenderStats::trackInboundPacket(unsigned short int incomingSequence,
|
||||||
|
|
||||||
unsigned short int expectedSequence = _totalPackets == 0 ? incomingSequence : _incomingLastSequence + (unsigned short int)1;
|
unsigned short int expectedSequence = _totalPackets == 0 ? incomingSequence : _incomingLastSequence + (unsigned short int)1;
|
||||||
|
|
||||||
if (incomingSequence == expectedSequence) { // on time
|
if (incomingSequence == expectedSequence) { // on time
|
||||||
_incomingLastSequence = incomingSequence;
|
_incomingLastSequence = incomingSequence;
|
||||||
} else { // out of order
|
} else { // out of order
|
||||||
int incoming = (int)incomingSequence;
|
int incoming = (int)incomingSequence;
|
||||||
int expected = (int)expectedSequence;
|
int expected = (int)expectedSequence;
|
||||||
|
|
||||||
|
@ -299,13 +299,13 @@ void SingleSenderStats::trackInboundPacket(unsigned short int incomingSequence,
|
||||||
|
|
||||||
// now that rollover has been corrected for (if it occurred), incoming and expected can be
|
// now that rollover has been corrected for (if it occurred), incoming and expected can be
|
||||||
// compared to each other directly, though one of them might be negative
|
// compared to each other directly, though one of them might be negative
|
||||||
if (incoming > expected) { // early
|
if (incoming > expected) { // early
|
||||||
// add all sequence numbers that were skipped to the missing sequence numbers list
|
// add all sequence numbers that were skipped to the missing sequence numbers list
|
||||||
for (int missingSequence = expected; missingSequence < incoming; missingSequence++) {
|
for (int missingSequence = expected; missingSequence < incoming; missingSequence++) {
|
||||||
_missingSequenceNumbers.insert(missingSequence < 0 ? missingSequence + UINT16_RANGE : missingSequence);
|
_missingSequenceNumbers.insert(missingSequence < 0 ? missingSequence + UINT16_RANGE : missingSequence);
|
||||||
}
|
}
|
||||||
_incomingLastSequence = incomingSequence;
|
_incomingLastSequence = incomingSequence;
|
||||||
} else { // late
|
} else { // late
|
||||||
// remove this from missing sequence number if it's in there
|
// remove this from missing sequence number if it's in there
|
||||||
_missingSequenceNumbers.remove(incomingSequence);
|
_missingSequenceNumbers.remove(incomingSequence);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue