mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +02:00
Merge pull request #13920 from AndrewMeadows/dont-bid-for-locked
don't bid for simulation ownership of locked entities
This commit is contained in:
commit
b92d1061c4
1 changed files with 4 additions and 2 deletions
|
@ -778,8 +778,10 @@ void EntityMotionState::computeCollisionGroupAndMask(int32_t& group, int32_t& ma
|
||||||
|
|
||||||
bool EntityMotionState::shouldSendBid() const {
|
bool EntityMotionState::shouldSendBid() const {
|
||||||
// NOTE: this method is only ever called when the entity's simulation is NOT locally owned
|
// NOTE: this method is only ever called when the entity's simulation is NOT locally owned
|
||||||
return _body->isActive() && (_region == workload::Region::R1) &&
|
return _body->isActive()
|
||||||
glm::max(glm::max(VOLUNTEER_SIMULATION_PRIORITY, _bumpedPriority), _entity->getScriptSimulationPriority()) >= _entity->getSimulationPriority();
|
&& (_region == workload::Region::R1)
|
||||||
|
&& glm::max(glm::max(VOLUNTEER_SIMULATION_PRIORITY, _bumpedPriority), _entity->getScriptSimulationPriority()) >= _entity->getSimulationPriority()
|
||||||
|
&& !_entity->getLocked();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t EntityMotionState::computeFinalBidPriority() const {
|
uint8_t EntityMotionState::computeFinalBidPriority() const {
|
||||||
|
|
Loading…
Reference in a new issue