1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 18:09:39 +00:00

[Server] Send ActorAuthority packets to all clients

This commit is contained in:
David Cernat 2020-08-25 11:23:42 +02:00
parent 89da1f39fb
commit 3c4d78e496

View file

@ -422,10 +422,10 @@ void ActorFunctions::SendActorAuthority() noexcept
mwmp::ActorPacket *actorPacket = mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_AUTHORITY);
actorPacket->setActorList(&writeActorList);
actorPacket->Send(writeActorList.guid);
// Also send this to everyone else who has the cell loaded
serverCell->sendToLoaded(actorPacket, &writeActorList);
// Always send the packet to everyone on the server, to reduce bugs caused by late-arriving packets
actorPacket->Send(false);
actorPacket->Send(true);
}
}