1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:49:55 +00:00

[Server] Stop resending attacks because they cause infinite death loops

This commit is contained in:
David Cernat 2017-02-20 22:19:39 +02:00
parent ca0b1a8813
commit 96d01fcde4

View file

@ -188,7 +188,6 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
playerController->GetPacket(ID_PLAYER_SKILL)->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_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_DRAWSTATE)->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_DYNAMICSTATS)->Send(pl, other->guid);
@ -196,7 +195,6 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
playerController->GetPacket(ID_PLAYER_SKILL)->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_POS)->Send(pl, other->guid);
playerController->GetPacket(ID_PLAYER_EQUIPMENT)->Send(pl, other->guid); playerController->GetPacket(ID_PLAYER_EQUIPMENT)->Send(pl, other->guid);
playerController->GetPacket(ID_PLAYER_ATTACK)->Send(pl, other->guid);
playerController->GetPacket(ID_PLAYER_DRAWSTATE)->Send(pl, other->guid); playerController->GetPacket(ID_PLAYER_DRAWSTATE)->Send(pl, other->guid);
}); });