mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
stop sending avatar agents to other avatars in DS packet
This commit is contained in:
parent
fb703171f2
commit
06b794563f
1 changed files with 5 additions and 1 deletions
|
@ -135,7 +135,11 @@ int main(int argc, const char * argv[])
|
||||||
!agent->matches((sockaddr *)&agentPublicAddress, (sockaddr *)&agentLocalAddress, agentType)) {
|
!agent->matches((sockaddr *)&agentPublicAddress, (sockaddr *)&agentLocalAddress, agentType)) {
|
||||||
if (memchr(SOLO_AGENT_TYPES_STRING, agent->getType(), 1) == NULL) {
|
if (memchr(SOLO_AGENT_TYPES_STRING, agent->getType(), 1) == NULL) {
|
||||||
// this is an agent of which there can be multiple, just add them to the packet
|
// this is an agent of which there can be multiple, just add them to the packet
|
||||||
currentBufferPos = addAgentToBroadcastPacket(currentBufferPos, &(*agent));
|
// don't send avatar agents to other avatars, that will come from avatar mixer
|
||||||
|
if (agentType != AGENT_TYPE_AVATAR || agent->getType() != AGENT_TYPE_AVATAR) {
|
||||||
|
currentBufferPos = addAgentToBroadcastPacket(currentBufferPos, &(*agent));
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// solo agent, we need to only send newest
|
// solo agent, we need to only send newest
|
||||||
if (newestSoloAgents[agent->getType()] == NULL ||
|
if (newestSoloAgents[agent->getType()] == NULL ||
|
||||||
|
|
Loading…
Reference in a new issue