kill packets already include killed node ID

This commit is contained in:
Stephen Birarda 2017-06-14 11:29:08 -07:00
parent 6fc1045ee9
commit ae8a0ab0e5

View file

@ -150,13 +150,6 @@ void AvatarMixer::optionallyReplicatePacket(ReceivedMessage& message, const Node
if (!packet) {
// construct an NLPacket to send to the replicant that has the contents of the received packet
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());
}