1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

[Client] Only try to send actor data to other players when authorized

This commit is contained in:
David Cernat 2017-05-27 18:55:14 +03:00
parent 73b9683182
commit 619982b085

View file

@ -231,13 +231,10 @@ void DedicatedPlayer::setCell()
// update has been called
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
if (Main::get().getCellController()->isActiveWorldCell(cell))
{
if (Main::get().getCellController()->isInitializedCell(cell))
if (Main::get().getCellController()->hasLocalAuthority(cell))
Main::get().getCellController()->getCell(cell)->updateLocal(true);
}
}
void DedicatedPlayer::updateMarker()