Use suicide as death reason when an attacker leaves the server

This commit is contained in:
David Cernat 2016-10-30 17:39:45 +02:00
parent 3c4b74cd14
commit ffb7683a5f

View file

@ -274,7 +274,8 @@ void Networking::ProcessPlayerPacket(RakNet::Packet *packet)
if (!killer)
killer = player;
else if (secondsSinceLastAttacker < 3)
if (secondsSinceLastAttacker < 3)
reason = 1; // killed
else
reason = 2; //suicide