1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:15:32 +00:00

[Browser] Use constant instead magic value

This commit is contained in:
Koncord 2017-01-30 04:15:42 +08:00
parent 3070ecdea7
commit 6b42f870a7
2 changed files with 3 additions and 1 deletions

View file

@ -20,7 +20,7 @@ unsigned int PingRakNetServer(const char *addr, unsigned short port)
RakNet::Packet *packet;
bool done = false;
int attempts = 0;
RakNet::TimeMS time = 999;
RakNet::TimeMS time = PING_UNREACHABLE;
RakNet::SocketDescriptor socketDescriptor {0, ""};
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();

View file

@ -9,6 +9,8 @@
#include <string>
#define PING_UNREACHABLE 999
unsigned int PingRakNetServer(const char *addr, unsigned short port);
struct ServerExtendedData