mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
[Browser] Use constant instead magic value
This commit is contained in:
parent
3070ecdea7
commit
6b42f870a7
@ -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…
x
Reference in New Issue
Block a user