forked from mirror/openmw-tes3mp
[Browser] Fix Clang warnings
This commit is contained in:
parent
d702845026
commit
66283943c5
2 changed files with 5 additions and 1 deletions
|
@ -179,7 +179,7 @@ ConnectionState QueryClient::Connect()
|
||||||
{
|
{
|
||||||
|
|
||||||
ConnectionAttemptResult car = peer->Connect(masterAddr.ToString(false), masterAddr.GetPort(), TES3MP_MASTERSERVER_PASSW,
|
ConnectionAttemptResult car = peer->Connect(masterAddr.ToString(false), masterAddr.GetPort(), TES3MP_MASTERSERVER_PASSW,
|
||||||
strlen(TES3MP_MASTERSERVER_PASSW), 0, 0, 5, 500);
|
strlen(TES3MP_MASTERSERVER_PASSW), nullptr, 0, 5, 500);
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,11 +44,15 @@ unsigned int PingRakNetServer(const char *addr, unsigned short port)
|
||||||
break;
|
break;
|
||||||
case ID_CONNECTED_PING:
|
case ID_CONNECTED_PING:
|
||||||
case ID_UNCONNECTED_PONG:
|
case ID_UNCONNECTED_PONG:
|
||||||
|
{
|
||||||
RakNet::BitStream bsIn(&packet->data[1], packet->length, false);
|
RakNet::BitStream bsIn(&packet->data[1], packet->length, false);
|
||||||
bsIn.Read(time);
|
bsIn.Read(time);
|
||||||
time = now - time;
|
time = now - time;
|
||||||
done = true;
|
done = true;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
peer->DeallocatePacket(packet);
|
peer->DeallocatePacket(packet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue