mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
kill packets already include killed node ID
This commit is contained in:
parent
6fc1045ee9
commit
ae8a0ab0e5
1 changed files with 0 additions and 7 deletions
|
@ -150,13 +150,6 @@ void AvatarMixer::optionallyReplicatePacket(ReceivedMessage& message, const Node
|
||||||
if (!packet) {
|
if (!packet) {
|
||||||
// construct an NLPacket to send to the replicant that has the contents of the received packet
|
// construct an NLPacket to send to the replicant that has the contents of the received packet
|
||||||
packet = NLPacket::create(replicatedType, message.getSize());
|
packet = NLPacket::create(replicatedType, message.getSize());
|
||||||
|
|
||||||
if (message.getType() == PacketType::KillAvatar) {
|
|
||||||
// this was not a replicated packet originally, we need to prepend the session ID
|
|
||||||
// for the killed node
|
|
||||||
packet->write(node->getUUID().toRfc4122());
|
|
||||||
}
|
|
||||||
|
|
||||||
packet->write(message.getMessage());
|
packet->write(message.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue