forked from mirror/openmw-tes3mp
[Browser] Use constant instead magic value
This commit is contained in:
parent
3070ecdea7
commit
6b42f870a7
2 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,7 @@ unsigned int PingRakNetServer(const char *addr, unsigned short port)
|
||||||
RakNet::Packet *packet;
|
RakNet::Packet *packet;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
int attempts = 0;
|
int attempts = 0;
|
||||||
RakNet::TimeMS time = 999;
|
RakNet::TimeMS time = PING_UNREACHABLE;
|
||||||
|
|
||||||
RakNet::SocketDescriptor socketDescriptor {0, ""};
|
RakNet::SocketDescriptor socketDescriptor {0, ""};
|
||||||
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();
|
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
|
#define PING_UNREACHABLE 999
|
||||||
|
|
||||||
unsigned int PingRakNetServer(const char *addr, unsigned short port);
|
unsigned int PingRakNetServer(const char *addr, unsigned short port);
|
||||||
|
|
||||||
struct ServerExtendedData
|
struct ServerExtendedData
|
||||||
|
|
Loading…
Reference in a new issue