mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 06:51:15 +02:00
don't use static packets in AvatarMixer
This commit is contained in:
parent
3b12d841de
commit
7fab3ea269
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ void attachAvatarDataToNode(Node* newNode) {
|
|||
// determine which avatars are included in the packet stream
|
||||
// 4) we should optimize the avatar data format to be more compact (100 bytes is pretty wasteful).
|
||||
void broadcastAvatarData() {
|
||||
static unsigned char broadcastPacketBuffer[MAX_PACKET_SIZE];
|
||||
static unsigned char avatarDataBuffer[MAX_PACKET_SIZE];
|
||||
unsigned char broadcastPacketBuffer[MAX_PACKET_SIZE];
|
||||
unsigned char avatarDataBuffer[MAX_PACKET_SIZE];
|
||||
unsigned char* broadcastPacket = (unsigned char*)&broadcastPacketBuffer[0];
|
||||
int numHeaderBytes = populateTypeAndVersion(broadcastPacket, PACKET_TYPE_BULK_AVATAR_DATA);
|
||||
unsigned char* currentBufferPosition = broadcastPacket + numHeaderBytes;
|
||||
|
|
Loading…
Reference in a new issue