mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
fix unix/mac build
This commit is contained in:
parent
2290179281
commit
e57774f630
1 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ QByteArray AvatarData::toByteArray(bool cullSmallChanges, bool sendAll, bool sen
|
||||||
unsigned char* startPosition = destinationBuffer;
|
unsigned char* startPosition = destinationBuffer;
|
||||||
|
|
||||||
// Leading flags, to indicate how much data is actually included in the packet...
|
// Leading flags, to indicate how much data is actually included in the packet...
|
||||||
UINT8 packetStateFlags = 0;
|
uint8_t packetStateFlags = 0;
|
||||||
if (sendMinimum) {
|
if (sendMinimum) {
|
||||||
setAtBit(packetStateFlags, AVATARDATA_FLAGS_MINIMUM);
|
setAtBit(packetStateFlags, AVATARDATA_FLAGS_MINIMUM);
|
||||||
}
|
}
|
||||||
|
@ -508,7 +508,7 @@ int AvatarData::parseDataFromBuffer(const QByteArray& buffer) {
|
||||||
_headData = new HeadData(this);
|
_headData = new HeadData(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT8 packetStateFlags = buffer.at(0);
|
uint8_t packetStateFlags = buffer.at(0);
|
||||||
bool minimumSent = oneAtBit(packetStateFlags, AVATARDATA_FLAGS_MINIMUM);
|
bool minimumSent = oneAtBit(packetStateFlags, AVATARDATA_FLAGS_MINIMUM);
|
||||||
bool packetIsCompressed = oneAtBit(packetStateFlags, AVATARDATA_FLAGS_COMPRESSED);
|
bool packetIsCompressed = oneAtBit(packetStateFlags, AVATARDATA_FLAGS_COMPRESSED);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue