Don't compile for client.dll

Don't compile 'CC_CreateFakePlayer_f' for the client.dll.
This commit is contained in:
Kawe Mazidjatari 2023-02-06 23:01:53 +01:00
parent f2fd9102d0
commit 354e25633c
2 changed files with 5 additions and 4 deletions

View File

@ -1250,9 +1250,9 @@ CC_CreateFakePlayer_f
on the server
=====================
*/
#ifndef CLIENT_DLL
void CC_CreateFakePlayer_f(const CCommand& args)
{
#ifndef CLIENT_DLL
if (args.ArgC() < 3)
{
DevMsg(eDLL_T::SERVER, "usage 'sv_addbot': name(string) teamid(int)\n");
@ -1265,5 +1265,5 @@ void CC_CreateFakePlayer_f(const CCommand& args)
g_pServerGameClients->ClientFullyConnect(nHandle, false);
g_pEngineServer->LockNetworkStringTables(false);
#endif // !CLIENT_DLL
}
}
#endif // !CLIENT_DLL

View File

@ -70,8 +70,9 @@ void CVHelp_f(const CCommand& args);
void CVList_f(const CCommand& args);
void CVDiff_f(const CCommand& args);
void CVFlag_f(const CCommand& args);
#ifndef CLIENT_DLL
void CC_CreateFakePlayer_f(const CCommand& args);
#endif // !CLIENT_DLL
///////////////////////////////////////////////////////////////////////////////
class VCallback : public IDetour
{