mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
if our simulation-bid priority matches the remote one, don't bid.
This commit is contained in:
parent
3519dd248b
commit
93da3ed5bd
1 changed files with 3 additions and 3 deletions
|
@ -116,8 +116,8 @@ bool EntityMotionState::handleEasyChanges(uint32_t flags, PhysicsEngine* engine)
|
|||
_outgoingPriority = NO_PRORITY;
|
||||
} else {
|
||||
_nextOwnershipBid = usecTimestampNow() + USECS_BETWEEN_OWNERSHIP_BIDS;
|
||||
if (engine->getSessionID() == _entity->getSimulatorID() || _entity->getSimulationPriority() > _outgoingPriority) {
|
||||
// we own the simulation or our priority looses to remote
|
||||
if (engine->getSessionID() == _entity->getSimulatorID() || _entity->getSimulationPriority() >= _outgoingPriority) {
|
||||
// we own the simulation or our priority looses to (or ties with) remote
|
||||
_outgoingPriority = NO_PRORITY;
|
||||
}
|
||||
}
|
||||
|
@ -379,7 +379,7 @@ bool EntityMotionState::shouldSendUpdate(uint32_t simulationStep, const QUuid& s
|
|||
// we don't own the simulation, but maybe we should...
|
||||
if (_outgoingPriority != NO_PRORITY) {
|
||||
if (_outgoingPriority < _entity->getSimulationPriority()) {
|
||||
// our priority looses to remote, so we don't bother to bid
|
||||
// our priority loses to remote, so we don't bother to bid
|
||||
_outgoingPriority = NO_PRORITY;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue