From ffb7683a5fd06a490fa851d11bf96e5b3d974571 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 30 Oct 2016 17:39:45 +0200 Subject: [PATCH] Use suicide as death reason when an attacker leaves the server --- apps/openmw-mp/Networking.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index c7d31eda8..08a7a5be4 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -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