mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
[Server] Minor cleanup in Networking
This commit is contained in:
parent
02487dce13
commit
aa91126ce3
1 changed files with 2 additions and 6 deletions
|
@ -722,11 +722,7 @@ void Networking::update(RakNet::Packet *packet)
|
||||||
|
|
||||||
RakNet::BitStream bsIn(&packet->data[1], packet->length, false);
|
RakNet::BitStream bsIn(&packet->data[1], packet->length, false);
|
||||||
|
|
||||||
{
|
bsIn.IgnoreBytes((unsigned int) RakNet::RakNetGUID::size()); // Ignore GUID from received packet
|
||||||
RakNet::RakNetGUID ignoredGUID;
|
|
||||||
bsIn.Read(ignoredGUID);
|
|
||||||
(void)ignoredGUID;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (player == 0)
|
if (player == 0)
|
||||||
{
|
{
|
||||||
|
@ -735,7 +731,7 @@ void Networking::update(RakNet::Packet *packet)
|
||||||
playerController->GetPacket(ID_HANDSHAKE)->RequestData(packet->guid);
|
playerController->GetPacket(ID_HANDSHAKE)->RequestData(packet->guid);
|
||||||
Players::newPlayer(packet->guid);
|
Players::newPlayer(packet->guid);
|
||||||
player = Players::getPlayer(packet->guid);
|
player = Players::getPlayer(packet->guid);
|
||||||
playerController->GetPacket(ID_USER_MYID)->Send(Players::getPlayer(packet->guid), false);
|
playerController->GetPacket(ID_USER_MYID)->Send(player, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (playerController->ContainsPacket(packet->data[0]))
|
else if (playerController->ContainsPacket(packet->data[0]))
|
||||||
|
|
Loading…
Reference in a new issue