From f26a1aee5749582a4ea49377b45baf7ddea47002 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sun, 26 May 2019 16:06:56 +0200 Subject: [PATCH] Fix compile error with DISABLE_HTTP (#9309) There are two variables, MASTER_SERVER_REGISTER_TIME and MASTER_SERVER_HEARTBEAT_TIME, which are unused when DISABLE_HTTP is set. This commit fixes that. --- src/openrct2/network/NetworkServerAdvertiser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/network/NetworkServerAdvertiser.cpp b/src/openrct2/network/NetworkServerAdvertiser.cpp index 9b857ce525..e712a1a38a 100644 --- a/src/openrct2/network/NetworkServerAdvertiser.cpp +++ b/src/openrct2/network/NetworkServerAdvertiser.cpp @@ -41,8 +41,10 @@ enum MASTER_SERVER_STATUS MASTER_SERVER_STATUS_INTERNAL_ERROR = 500 }; +# ifndef DISABLE_HTTP constexpr int32_t MASTER_SERVER_REGISTER_TIME = 120 * 1000; // 2 minutes constexpr int32_t MASTER_SERVER_HEARTBEAT_TIME = 60 * 1000; // 1 minute +# endif class NetworkServerAdvertiser final : public INetworkServerAdvertiser {