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:
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;
|
||||
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();
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
#include <string>
|
||||
|
||||
|
||||
#define PING_UNREACHABLE 999
|
||||
|
||||
unsigned int PingRakNetServer(const char *addr, unsigned short port);
|
||||
|
||||
struct ServerExtendedData
|
||||
|
|
Loading…
Reference in a new issue