From bd1b1fca6441b8e4baf7e0fd5f5461c43b144b39 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 8 Oct 2016 15:35:38 +0800 Subject: [PATCH] Woops --- apps/openmw-mp/Networking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 674b127ef..f6b705376 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -289,7 +289,7 @@ void Networking::Update(RakNet::Packet *packet) if (!killer) killer = player; - else if(killer->GetID() == player->GetID()) + else if (killer->GetID() == player->GetID()) reason = 2; //suicide else reason = 1; //killed @@ -406,7 +406,7 @@ void Networking::NewPlayer(RakNet::RakNetGUID guid) void Networking::DisconnectPlayer(RakNet::RakNetGUID guid) { Player *player = Players::GetPlayer(guid); - if(!player) + if (!player) return; Script::Call(player->GetID()); controller->GetPacket(ID_USER_DISCONNECTED)->Send(player, true);