mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 16:52:28 +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;
|
||||
}
|
||||
|
||||
// look for entities that need outgoing packets
|
||||
// look for entities to prune or update
|
||||
QSet<EntityMotionState*>::iterator stateItr = _outgoingChanges.begin();
|
||||
while (stateItr != _outgoingChanges.end()) {
|
||||
EntityMotionState* state = *stateItr;
|
||||
if (!state->isCandidateForOwnership(sessionID)) {
|
||||
// prune
|
||||
stateItr = _outgoingChanges.erase(stateItr);
|
||||
} else if (state->shouldSendUpdate(numSubsteps, sessionID)) {
|
||||
// update
|
||||
state->sendUpdate(_entityPacketSender, sessionID, numSubsteps);
|
||||
++stateItr;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue