mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 04:53:04 +02:00
add missing packet header for broadcast head data
This commit is contained in:
parent
8129c2477a
commit
f8ab33ccc7
2 changed files with 5 additions and 3 deletions
|
@ -455,7 +455,9 @@ void updateAvatar(float frametime)
|
|||
|
||||
// Send my stream of head/hand data to the avatar mixer and voxel server
|
||||
unsigned char broadcastString[200];
|
||||
int broadcastBytes = myAvatar.getBroadcastData(broadcastString);
|
||||
*broadcastString = PACKET_HEADER_HEAD_DATA;
|
||||
|
||||
int broadcastBytes = myAvatar.getBroadcastData(broadcastString + 1);
|
||||
const char broadcastReceivers[2] = {AGENT_TYPE_VOXEL, AGENT_TYPE_AVATAR_MIXER};
|
||||
|
||||
AgentList::getInstance()->broadcastToAgents(broadcastString, broadcastBytes, broadcastReceivers, 2);
|
||||
|
@ -1097,7 +1099,7 @@ void sendVoxelServerEraseAll() {
|
|||
sprintf(message,"%c%s",'Z',"erase all");
|
||||
int messageSize = strlen(message) + 1;
|
||||
AgentList::getInstance()->broadcastToAgents((unsigned char*) message, messageSize, &AGENT_TYPE_VOXEL, 1);
|
||||
}
|
||||
}\
|
||||
|
||||
void sendVoxelServerAddScene() {
|
||||
char message[100];
|
||||
|
|
|
@ -118,7 +118,7 @@ void AgentList::processBulkAgentData(sockaddr *senderAddress, unsigned char *pac
|
|||
while ((currentPosition - startPosition) < numTotalBytes) {
|
||||
currentPosition += unpackAgentId(currentPosition, &agentID);
|
||||
memcpy(packetHolder + 1, currentPosition, numBytesPerAgent);
|
||||
|
||||
|
||||
int matchingAgentIndex = indexOfMatchingAgent(agentID);
|
||||
|
||||
if (matchingAgentIndex >= 0) {
|
||||
|
|
Loading…
Reference in a new issue