mirror of
https://github.com/overte-org/overte.git
synced 2025-07-16 17:16:40 +02:00
rollback automatic priority promotion to RECRUIT
This commit is contained in:
parent
6638b1deae
commit
a51d83c6e4
1 changed files with 5 additions and 3 deletions
|
@ -354,11 +354,13 @@ bool EntityTree::updateEntity(EntityItemPointer entity, const EntityItemProperti
|
||||||
// else: We assume the sender really did believe it was the simulation owner when it sent
|
// else: We assume the sender really did believe it was the simulation owner when it sent
|
||||||
} else if (submittedID == senderID) {
|
} else if (submittedID == senderID) {
|
||||||
// the sender is trying to take or continue ownership
|
// the sender is trying to take or continue ownership
|
||||||
if (entity->getSimulatorID().isNull() || entity->getSimulatorID() == senderID) {
|
if (entity->getSimulatorID().isNull()) {
|
||||||
// the sender is taking or asserting ownership
|
// the sender is taking ownership
|
||||||
// but we never grant priorities lower than RECRUIT
|
|
||||||
properties.promoteSimulationPriority(RECRUIT_SIMULATION_PRIORITY);
|
properties.promoteSimulationPriority(RECRUIT_SIMULATION_PRIORITY);
|
||||||
simulationBlocked = false;
|
simulationBlocked = false;
|
||||||
|
} else if (entity->getSimulatorID() == senderID) {
|
||||||
|
// the sender is asserting ownership, maybe changing priority
|
||||||
|
simulationBlocked = false;
|
||||||
} else {
|
} else {
|
||||||
// the sender is trying to steal ownership from another simulator
|
// the sender is trying to steal ownership from another simulator
|
||||||
// so we apply the rules for ownership change:
|
// so we apply the rules for ownership change:
|
||||||
|
|
Loading…
Reference in a new issue