mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 07:24:59 +02:00
re-enable code that gives up simulation ownership
This commit is contained in:
parent
116123256a
commit
62a45ccebb
1 changed files with 2 additions and 6 deletions
|
@ -258,12 +258,8 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
||||||
properties.setSimulatorID(myNodeID);
|
properties.setSimulatorID(myNodeID);
|
||||||
} else if (simulatorID == myNodeID && zeroSpeed && zeroSpin) {
|
} else if (simulatorID == myNodeID && zeroSpeed && zeroSpin) {
|
||||||
// we are the simulator and the object has stopped. give up "simulator" status
|
// we are the simulator and the object has stopped. give up "simulator" status
|
||||||
|
_entity->setSimulatorID(QUuid());
|
||||||
// XXX the entity server will clear the simulatorID after 2 seconds. if the interface clears
|
properties.setSimulatorID(QUuid());
|
||||||
// it here, every node that sees the entity-stopped-moving packets will rebroadcast them.
|
|
||||||
|
|
||||||
// _entity->setSimulatorID(QUuid());
|
|
||||||
// properties.setSimulatorID(QUuid());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RELIABLE_SEND_HACK: count number of updates for entities at rest so we can stop sending them after some limit.
|
// RELIABLE_SEND_HACK: count number of updates for entities at rest so we can stop sending them after some limit.
|
||||||
|
|
Loading…
Reference in a new issue