mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Woops
This commit is contained in:
parent
50d989d767
commit
bd1b1fca64
1 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@ void Networking::Update(RakNet::Packet *packet)
|
||||||
|
|
||||||
if (!killer)
|
if (!killer)
|
||||||
killer = player;
|
killer = player;
|
||||||
else if(killer->GetID() == player->GetID())
|
else if (killer->GetID() == player->GetID())
|
||||||
reason = 2; //suicide
|
reason = 2; //suicide
|
||||||
else
|
else
|
||||||
reason = 1; //killed
|
reason = 1; //killed
|
||||||
|
@ -406,7 +406,7 @@ void Networking::NewPlayer(RakNet::RakNetGUID guid)
|
||||||
void Networking::DisconnectPlayer(RakNet::RakNetGUID guid)
|
void Networking::DisconnectPlayer(RakNet::RakNetGUID guid)
|
||||||
{
|
{
|
||||||
Player *player = Players::GetPlayer(guid);
|
Player *player = Players::GetPlayer(guid);
|
||||||
if(!player)
|
if (!player)
|
||||||
return;
|
return;
|
||||||
Script::Call<Script::CallbackIdentity("OnPlayerDisconnect")>(player->GetID());
|
Script::Call<Script::CallbackIdentity("OnPlayerDisconnect")>(player->GetID());
|
||||||
controller->GetPacket(ID_USER_DISCONNECTED)->Send(player, true);
|
controller->GetPacket(ID_USER_DISCONNECTED)->Send(player, true);
|
||||||
|
|
Loading…
Reference in a new issue