Skip to content

Commit

Permalink
Remove CnCNet 4 availability from TS Client builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
CCHyper committed Nov 9, 2022
1 parent 5d02dbf commit 379970b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vinifera/vinifera_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ bool Vinifera_Startup()
return false;
}

#if !defined(TS_CLIENT)
/**
* Initialise the CnCNet4 system.
*/
Expand All @@ -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;
}
Expand Down

0 comments on commit 379970b

Please sign in to comment.