mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 10:52:18 +02:00
Merge pull request #12901 from kitely/fix-banning-users
Fixed banning users
This commit is contained in:
commit
d66ed07061
1 changed files with 7 additions and 2 deletions
|
@ -815,8 +815,13 @@ unsigned int LimitedNodeList::broadcastToNodes(std::unique_ptr<NLPacket> packet,
|
|||
|
||||
eachNode([&](const SharedNodePointer& node){
|
||||
if (node && destinationNodeTypes.contains(node->getType())) {
|
||||
sendUnreliablePacket(*packet, *node);
|
||||
++n;
|
||||
if (packet->isReliable()) {
|
||||
auto packetCopy = NLPacket::createCopy(*packet);
|
||||
sendPacket(std::move(packetCopy), *node);
|
||||
} else {
|
||||
sendUnreliablePacket(*packet, *node);
|
||||
}
|
||||
++n;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue