mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
fix a bad replacement in DatagramProcessor
This commit is contained in:
parent
04b3ca3efd
commit
122fd61451
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 = numBytesForPacketHeaderGivenPacketType(PacketTypeMuteEnvironment);
|
||||
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