allow entity server to time-out entity-simulation ownership rather than having interfaces give it up

This commit is contained in:
Seth Alves 2015-04-22 11:18:18 -07:00
parent 32673efc80
commit 41166c1a42

View file

@ -294,8 +294,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()); // _entity->setSimulatorID(QUuid());
properties.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.