mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
update some comments
This commit is contained in:
parent
e51edaa117
commit
91a2f86482
1 changed files with 3 additions and 1 deletions
|
@ -274,13 +274,15 @@ void PhysicalEntitySimulation::handleOutgoingChanges(const VectorOfMotionStates&
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// look for entities that need outgoing packets
|
// look for entities to prune or update
|
||||||
QSet<EntityMotionState*>::iterator stateItr = _outgoingChanges.begin();
|
QSet<EntityMotionState*>::iterator stateItr = _outgoingChanges.begin();
|
||||||
while (stateItr != _outgoingChanges.end()) {
|
while (stateItr != _outgoingChanges.end()) {
|
||||||
EntityMotionState* state = *stateItr;
|
EntityMotionState* state = *stateItr;
|
||||||
if (!state->isCandidateForOwnership(sessionID)) {
|
if (!state->isCandidateForOwnership(sessionID)) {
|
||||||
|
// prune
|
||||||
stateItr = _outgoingChanges.erase(stateItr);
|
stateItr = _outgoingChanges.erase(stateItr);
|
||||||
} else if (state->shouldSendUpdate(numSubsteps, sessionID)) {
|
} else if (state->shouldSendUpdate(numSubsteps, sessionID)) {
|
||||||
|
// update
|
||||||
state->sendUpdate(_entityPacketSender, sessionID, numSubsteps);
|
state->sendUpdate(_entityPacketSender, sessionID, numSubsteps);
|
||||||
++stateItr;
|
++stateItr;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue