forked from mirror/openmw-tes3mp
[Client] Only try to send actor data to other players when authorized
This commit is contained in:
parent
73b9683182
commit
619982b085
1 changed files with 3 additions and 6 deletions
|
@ -231,14 +231,11 @@ void DedicatedPlayer::setCell()
|
||||||
// update has been called
|
// update has been called
|
||||||
setPtr(world->moveObject(ptr, cellStore, position.pos[0], position.pos[1], position.pos[2]));
|
setPtr(world->moveObject(ptr, cellStore, position.pos[0], position.pos[1], position.pos[2]));
|
||||||
|
|
||||||
// If this player is now in a cell that is active for us, we should send them all
|
// If this player is now in a cell that we are the local authority over, we should send them all
|
||||||
// NPC data in that cell
|
// NPC data in that cell
|
||||||
if (Main::get().getCellController()->isActiveWorldCell(cell))
|
if (Main::get().getCellController()->hasLocalAuthority(cell))
|
||||||
{
|
|
||||||
if (Main::get().getCellController()->isInitializedCell(cell))
|
|
||||||
Main::get().getCellController()->getCell(cell)->updateLocal(true);
|
Main::get().getCellController()->getCell(cell)->updateLocal(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void DedicatedPlayer::updateMarker()
|
void DedicatedPlayer::updateMarker()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue