mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
GameAgent - list servers bugfix
This commit is contained in:
parent
1f1291d2bc
commit
eeebba11dc
|
@ -163,6 +163,14 @@ void _initializeWinsock(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// start WSA
|
||||||
|
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
|
||||||
|
CPrintF("Error initializing winsock!\n");
|
||||||
|
_uninitWinsock();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
_wsaData = new WSADATA;
|
_wsaData = new WSADATA;
|
||||||
_socket = INVALID_SOCKET;
|
_socket = INVALID_SOCKET;
|
||||||
|
|
||||||
|
@ -172,14 +180,6 @@ void _initializeWinsock(void)
|
||||||
}
|
}
|
||||||
_szBuffer = new char[2050];
|
_szBuffer = new char[2050];
|
||||||
|
|
||||||
// start WSA
|
|
||||||
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
|
|
||||||
CPrintF("Error initializing winsock!\n");
|
|
||||||
_uninitWinsock();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// get the host IP
|
// get the host IP
|
||||||
hostent* phe;
|
hostent* phe;
|
||||||
if(!ga_bMSLegacy) {
|
if(!ga_bMSLegacy) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user