mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 23:33:26 +02:00
remove debug prints, fix a comment
This commit is contained in:
parent
6678922f5c
commit
7781808bea
2 changed files with 1 additions and 3 deletions
|
@ -71,11 +71,9 @@ void setSimId(EntityItemProperties& propertiesWithSimID, EntityItem* entity) {
|
|||
propertiesWithSimID.containsPositionChange()) {
|
||||
propertiesWithSimID.setSimulatorID(myNodeID);
|
||||
entity->setSimulatorID(myNodeID);
|
||||
qDebug() << "script claiming ownership";
|
||||
} else if (entity->getSimulatorID() == myNodeID) {
|
||||
propertiesWithSimID.setSimulatorID(QUuid()); // give up simulation ownership
|
||||
entity->setSimulatorID(QUuid());
|
||||
qDebug() << "script releasing ownership";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
_entity->resetAccelerationNearlyGravityCount();
|
||||
}
|
||||
|
||||
// if this entity has been accelerated at close to gravity for a certain number of frames, let
|
||||
// if this entity has been accelerated at close to gravity for a certain number of simulation-steps, let
|
||||
// the entity server's estimates include gravity.
|
||||
if (_entity->getAccelerationNearlyGravityCount() >= STEPS_TO_DECIDE_BALLISTIC) {
|
||||
_entity->setAcceleration(_entity->getGravity());
|
||||
|
|
Loading…
Reference in a new issue