don't give up ownership of simulation until the last packet is sent

This commit is contained in:
Seth Alves 2015-04-14 13:37:57 -07:00
parent 3cf31ff701
commit e25590f00e

View file

@ -255,7 +255,7 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
_entity->setSimulatorID(myNodeID);
properties.setSimulatorID(myNodeID);
} else if (simulatorID == myNodeID && zeroSpin && zeroSpin) {
} else if (simulatorID == myNodeID && zeroSpin && _numNonMovingUpdates == 3) {
// we are the simulator and the object has stopped. give up "simulator" status
_entity->setSimulatorID("");
properties.setSimulatorID("");