From b1460cf010e144be1fc5ec6cfcce891ea00b9f24 Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 22 Feb 2017 14:04:44 +0800 Subject: [PATCH] [Server] Send ID_PLAYER_POS every ID_PLAYER_CELL_CHANGE --- apps/openmw-mp/Networking.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 7ae81b3ab..d3dc064b5 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -186,14 +186,12 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) playerController->GetPacket(ID_PLAYER_DYNAMICSTATS)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_ATTRIBUTE)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_SKILL)->Send(other, pl->guid); - playerController->GetPacket(ID_PLAYER_POS)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_EQUIPMENT)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_DRAWSTATE)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_DYNAMICSTATS)->Send(pl, other->guid); playerController->GetPacket(ID_PLAYER_ATTRIBUTE)->Send(pl, other->guid); playerController->GetPacket(ID_PLAYER_SKILL)->Send(pl, other->guid); - playerController->GetPacket(ID_PLAYER_POS)->Send(pl, other->guid); playerController->GetPacket(ID_PLAYER_EQUIPMENT)->Send(pl, other->guid); playerController->GetPacket(ID_PLAYER_DRAWSTATE)->Send(pl, other->guid); @@ -201,6 +199,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) other->npc.mName.c_str()); }); + playerController->GetPacket(ID_PLAYER_POS)->Send(player); myPacket->Send(player, true); //send to other clients Script::Call(player->getId());