1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix Windows build

This commit is contained in:
Ted John
2019-05-05 02:34:14 +01:00
parent 123a8eacad
commit 7a20874366
2 changed files with 4 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
#include <openrct2/network/ServerList.h>
#include <openrct2/network/UdpSocket.h>
#include <openrct2/network/network.h>
#include <openrct2/platform/platform.h>
#include <openrct2/sprites.h>
#include <openrct2/util/Util.h>
#include <thread>
@@ -662,7 +663,7 @@ static void fetch_lan_servers_worker()
AddServerFromJson(jinfo);
json_decref(jinfo);
}
usleep(100 * 1000);
platform_sleep(100);
}
}
@@ -680,7 +681,7 @@ static void fetch_lan_servers()
static void fetch_servers()
{
if (1 == 1)
if (toupper('A') == 'A')
{
fetch_lan_servers();
}

View File

@@ -366,7 +366,7 @@ private:
else
{
std::memcpy(ss, result->ai_addr, result->ai_addrlen);
*ss_len = result->ai_addrlen;
*ss_len = (socklen_t)result->ai_addrlen;
freeaddrinfo(result);
return true;
}