mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 09:33:29 +02:00
don't give up ownership of simulation until the last packet is sent
This commit is contained in:
parent
3cf31ff701
commit
e25590f00e
1 changed files with 1 additions and 1 deletions
|
@ -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("");
|
||||
|
|
Loading…
Reference in a new issue