mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
Merge pull request #114 from birarda/avatar-from-mixer
fix returned number of bytes read from AvatarData parseData
This commit is contained in:
commit
e00a387020
1 changed files with 3 additions and 2 deletions
|
@ -96,11 +96,12 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
||||||
|
|
||||||
// called on the other agents - assigns it to my views of the others
|
// called on the other agents - assigns it to my views of the others
|
||||||
int AvatarData::parseData(unsigned char* sourceBuffer, int numBytes) {
|
int AvatarData::parseData(unsigned char* sourceBuffer, int numBytes) {
|
||||||
unsigned char* startPosition = sourceBuffer;
|
|
||||||
|
|
||||||
// increment to push past the packet header
|
// increment to push past the packet header
|
||||||
sourceBuffer++;
|
sourceBuffer++;
|
||||||
|
|
||||||
|
unsigned char* startPosition = sourceBuffer;
|
||||||
|
|
||||||
memcpy(&_bodyPosition, sourceBuffer, sizeof(float) * 3);
|
memcpy(&_bodyPosition, sourceBuffer, sizeof(float) * 3);
|
||||||
sourceBuffer += sizeof(float) * 3;
|
sourceBuffer += sizeof(float) * 3;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue