mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
fix return of bytes read to push pointer forwards
This commit is contained in:
parent
7eee3404c7
commit
79d547e9d0
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