From f258c8034dbb9f200009b94a7b0825725975f04b Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 26 Jul 2020 21:20:03 +0200 Subject: [PATCH] Wrap code with macro test DISABLE_NETWORK --- src/openrct2/network/NetworkBase.h | 4 ++++ src/openrct2/network/NetworkClient.h | 4 ++++ src/openrct2/network/NetworkServer.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/openrct2/network/NetworkBase.h b/src/openrct2/network/NetworkBase.h index c8502e3a61..ad8eed136e 100644 --- a/src/openrct2/network/NetworkBase.h +++ b/src/openrct2/network/NetworkBase.h @@ -10,6 +10,8 @@ #include +#ifndef DISABLE_NETWORK + class NetworkBase { public: @@ -229,3 +231,5 @@ private: // Client Data bool _requireReconnect = false; bool _clientMapLoaded = false; }; + +#endif // DISABLE_NETWORK diff --git a/src/openrct2/network/NetworkClient.h b/src/openrct2/network/NetworkClient.h index a4f993cb82..34b3fd3d5e 100644 --- a/src/openrct2/network/NetworkClient.h +++ b/src/openrct2/network/NetworkClient.h @@ -2,7 +2,11 @@ #include "NetworkBase.h" +#ifndef DISABLE_NETWORK + class NetworkClient final : public NetworkBase { public: }; + +#endif // DISABLE_NETWORK diff --git a/src/openrct2/network/NetworkServer.h b/src/openrct2/network/NetworkServer.h index 3e40443bf6..38b3986657 100644 --- a/src/openrct2/network/NetworkServer.h +++ b/src/openrct2/network/NetworkServer.h @@ -2,7 +2,11 @@ #include "NetworkBase.h" +#ifndef DISABLE_NETWORK + class NetworkServer final : public NetworkBase { public: }; + +#endif // DISABLE_NETWORK