mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 21:16:00 +02:00
replace packet header size check with 0
This commit is contained in:
parent
dfa5be1a0c
commit
c5840d085c
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ void DatagramProcessor::processDatagrams() {
|
|||
glm::vec3 position;
|
||||
float radius;
|
||||
|
||||
int headerSize = numBytesForPacketHeaderGivenPacketType(PacketTypeMuteEnvironment);
|
||||
int headerSize = 0;
|
||||
memcpy(&position, incomingPacket.constData() + headerSize, sizeof(glm::vec3));
|
||||
memcpy(&radius, incomingPacket.constData() + headerSize + sizeof(glm::vec3), sizeof(float));
|
||||
float distance = glm::distance(DependencyManager::get<AvatarManager>()->getMyAvatar()->getPosition(),
|
||||
|
|
Loading…
Reference in a new issue