mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
Merge pull request #17 from RocketersAlex/linux-port
GameAgent - list servers bugfix.
This commit is contained in:
commit
67e940def8
|
@ -166,12 +166,6 @@ void _initializeWinsock(void)
|
||||||
_wsaData = new WSADATA;
|
_wsaData = new WSADATA;
|
||||||
_socket = INVALID_SOCKET;
|
_socket = INVALID_SOCKET;
|
||||||
|
|
||||||
// make the buffer that we'll use for packet reading
|
|
||||||
if(_szBuffer != NULL) {
|
|
||||||
delete[] _szBuffer;
|
|
||||||
}
|
|
||||||
_szBuffer = new char[2050];
|
|
||||||
|
|
||||||
// start WSA
|
// start WSA
|
||||||
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
|
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
|
||||||
CPrintF("Error initializing winsock!\n");
|
CPrintF("Error initializing winsock!\n");
|
||||||
|
@ -180,6 +174,12 @@ void _initializeWinsock(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// make the buffer that we'll use for packet reading
|
||||||
|
if(_szBuffer != NULL) {
|
||||||
|
delete[] _szBuffer;
|
||||||
|
}
|
||||||
|
_szBuffer = new char[2050];
|
||||||
|
|
||||||
// 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