mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-13 19:23:05 +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);
|
mwmp::ActorPacket *actorPacket = mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_AUTHORITY);
|
||||||
actorPacket->setActorList(&writeActorList);
|
actorPacket->setActorList(&writeActorList);
|
||||||
actorPacket->Send(writeActorList.guid);
|
|
||||||
|
|
||||||
// Also send this to everyone else who has the cell loaded
|
// Always send the packet to everyone on the server, to reduce bugs caused by late-arriving packets
|
||||||
serverCell->sendToLoaded(actorPacket, &writeActorList);
|
actorPacket->Send(false);
|
||||||
|
actorPacket->Send(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue