mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
add a comment for size guard
This commit is contained in:
parent
f919d2985b
commit
974108734a
1 changed files with 2 additions and 0 deletions
|
@ -1115,6 +1115,8 @@ void AvatarData::sendBillboardPacket() {
|
|||
if (!_billboard.isEmpty()) {
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
|
||||
// This makes sure the billboard won't be too large to send.
|
||||
// Once more protocol changes are done and we can send blocks of data we can support sending > MTU sized billboards.
|
||||
if (_billboard.size() <= NLPacket::maxPayloadSize(PacketType::AvatarBillboard)) {
|
||||
auto billboardPacket = NLPacket::create(PacketType::AvatarBillboard, _billboard.size());
|
||||
billboardPacket->write(_billboard);
|
||||
|
|
Loading…
Reference in a new issue