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:
parent
89da1f39fb
commit
3c4d78e496
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue