forked from mirror/openmw-tes3mp
[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::RakNetGUID ignoredGUID;
|
||||
bsIn.Read(ignoredGUID);
|
||||
(void)ignoredGUID;
|
||||
}
|
||||
bsIn.IgnoreBytes((unsigned int) RakNet::RakNetGUID::size()); // Ignore GUID from received packet
|
||||
|
||||
if (player == 0)
|
||||
{
|
||||
|
@ -735,7 +731,7 @@ void Networking::update(RakNet::Packet *packet)
|
|||
playerController->GetPacket(ID_HANDSHAKE)->RequestData(packet->guid);
|
||||
Players::newPlayer(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;
|
||||
}
|
||||
else if (playerController->ContainsPacket(packet->data[0]))
|
||||
|
|
Loading…
Reference in a new issue