From 619982b085956a7f5756c845288b5ce261d05d62 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 27 May 2017 18:55:14 +0300 Subject: [PATCH] [Client] Only try to send actor data to other players when authorized --- apps/openmw/mwmp/DedicatedPlayer.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/openmw/mwmp/DedicatedPlayer.cpp b/apps/openmw/mwmp/DedicatedPlayer.cpp index 4e6af2a6e..71b8c7d01 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.cpp +++ b/apps/openmw/mwmp/DedicatedPlayer.cpp @@ -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)) - Main::get().getCellController()->getCell(cell)->updateLocal(true); - } + if (Main::get().getCellController()->hasLocalAuthority(cell)) + Main::get().getCellController()->getCell(cell)->updateLocal(true); } void DedicatedPlayer::updateMarker()