mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Some .get() cleanup
This commit is contained in:
parent
ca4e2ed274
commit
c77310019d
3 changed files with 3 additions and 5 deletions
|
@ -463,8 +463,6 @@ int AudioMixer::prepareMixForListeningNode(Node* node) {
|
|||
}
|
||||
|
||||
void AudioMixer::sendAudioEnvironmentPacket(SharedNodePointer node) {
|
||||
static char clientEnvBuffer[MAX_PACKET_SIZE];
|
||||
|
||||
// Send stream properties
|
||||
bool hasReverb = false;
|
||||
float reverbTime, wetLevel;
|
||||
|
|
|
@ -96,7 +96,7 @@ int EntityServer::sendSpecialPackets(const SharedNodePointer& node, OctreeQueryN
|
|||
auto specialPacket = tree->encodeEntitiesDeletedSince(queryNode->getSequenceNumber(), deletedEntitiesSentAt,
|
||||
hasMoreToSend);
|
||||
|
||||
queryNode->packetSent(*specialPacket.get());
|
||||
queryNode->packetSent(*specialPacket);
|
||||
|
||||
totalBytes += specialPacket->getSizeWithHeader();
|
||||
packetsSent++;
|
||||
|
|
|
@ -108,7 +108,7 @@ void OctreeEditPacketSender::queuePacketToNode(const QUuid& nodeUUID, std::uniqu
|
|||
}
|
||||
|
||||
// add packet to history
|
||||
_sentPacketHistories[nodeUUID].packetSent(sequence, *packet.get());
|
||||
_sentPacketHistories[nodeUUID].packetSent(sequence, *packet);
|
||||
|
||||
queuePacketForSending(node, std::move(packet));
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ void OctreeEditPacketSender::queuePacketToNodes(std::unique_ptr<NLPacket> packet
|
|||
|
||||
if (isMyJurisdiction) {
|
||||
// make a copy of this packet for this node and queue
|
||||
auto packetCopy = NLPacket::createCopy(*packet.get());
|
||||
auto packetCopy = NLPacket::createCopy(*packet);
|
||||
queuePacketToNode(nodeUUID, std::move(packetCopy));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue