mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
Implement DEV-2654: Allow ESS to make use of signals like
This commit is contained in:
parent
b50fb47a95
commit
3a606d1907
1 changed files with 2 additions and 2 deletions
|
@ -512,10 +512,10 @@ void AvatarMixer::handleAvatarKilled(SharedNodePointer avatarNode) {
|
||||||
// we relay avatar kill packets to agents that are not upstream
|
// we relay avatar kill packets to agents that are not upstream
|
||||||
// and downstream avatar mixers, if the node that was just killed was being replicatedConnectedAgent
|
// and downstream avatar mixers, if the node that was just killed was being replicatedConnectedAgent
|
||||||
return node->getActiveSocket() &&
|
return node->getActiveSocket() &&
|
||||||
((node->getType() == NodeType::Agent && !node->isUpstream()) ||
|
(((node->getType() == NodeType::Agent || node->getType() == NodeType::EntityScriptServer) && !node->isUpstream()) ||
|
||||||
(avatarNode->isReplicated() && shouldReplicateTo(*avatarNode, *node)));
|
(avatarNode->isReplicated() && shouldReplicateTo(*avatarNode, *node)));
|
||||||
}, [&](const SharedNodePointer& node) {
|
}, [&](const SharedNodePointer& node) {
|
||||||
if (node->getType() == NodeType::Agent) {
|
if (node->getType() == NodeType::Agent || node->getType() == NodeType::EntityScriptServer) {
|
||||||
if (!killPacket) {
|
if (!killPacket) {
|
||||||
killPacket = NLPacket::create(PacketType::KillAvatar, NUM_BYTES_RFC4122_UUID + sizeof(KillAvatarReason), true);
|
killPacket = NLPacket::create(PacketType::KillAvatar, NUM_BYTES_RFC4122_UUID + sizeof(KillAvatarReason), true);
|
||||||
killPacket->write(avatarNode->getUUID().toRfc4122());
|
killPacket->write(avatarNode->getUUID().toRfc4122());
|
||||||
|
|
Loading…
Reference in a new issue