mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 01:24:05 +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);
|
||||
} else if (simulatorID == myNodeID && zeroSpeed && zeroSpin) {
|
||||
// we are the simulator and the object has stopped. give up "simulator" status
|
||||
|
||||
// XXX the entity server will clear the simulatorID after 2 seconds. if the interface clears
|
||||
// it here, every node that sees the entity-stopped-moving packets will rebroadcast them.
|
||||
|
||||
// _entity->setSimulatorID(QUuid());
|
||||
// properties.setSimulatorID(QUuid());
|
||||
_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.
|
||||
|
|
Loading…
Reference in a new issue