[Server] Exchange position information correctly between players

This commit is contained in:
David Cernat 2017-02-19 23:30:43 +02:00
parent ed91f20cd3
commit 3e031faa96

View file

@ -174,7 +174,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
playerController->GetPacket(ID_PLAYER_DYNAMICSTATS)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_DYNAMICSTATS)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_ATTRIBUTE)->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_SKILL)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_POS)->Send(pl, pl->guid); playerController->GetPacket(ID_PLAYER_POS)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_EQUIPMENT)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_EQUIPMENT)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_ATTACK)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_ATTACK)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_DRAWSTATE)->Send(other, pl->guid); playerController->GetPacket(ID_PLAYER_DRAWSTATE)->Send(other, pl->guid);