From 07c9446c0491bc999f00993932936fbc8bc58a4b Mon Sep 17 00:00:00 2001 From: CCHyper <73803386+CCHyper@users.noreply.github.com> Date: Wed, 9 Nov 2022 14:17:17 +0000 Subject: [PATCH] Remove CnCNet 4 availability from TS Client builds. --- src/vinifera/vinifera_functions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vinifera/vinifera_functions.cpp b/src/vinifera/vinifera_functions.cpp index 20c8bdf3e..4eec2138d 100644 --- a/src/vinifera/vinifera_functions.cpp +++ b/src/vinifera/vinifera_functions.cpp @@ -526,6 +526,7 @@ bool Vinifera_Startup() return false; } +#if !defined(TS_CLIENT) /** * Initialise the CnCNet4 system. */ @@ -541,6 +542,13 @@ bool Vinifera_Startup() CnCNet4::Shutdown(); CnCNet4::IsEnabled = false; } +#else + /** + * Client builds can only use CnCNet5. + */ + CnCNet4::IsEnabled = false; + //CnCNet5::IsActive = true; // Enable when new Client system is implemented. +#endif return true; }