From f0fe2bf58f0275f63562e6c996923770d4b99a65 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 7 May 2024 15:02:36 +0200 Subject: [PATCH] Engine: fix client dll compile error This code should not compile for client.dll. --- src/engine/client/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 61d4260c..e85b9805 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -533,11 +533,13 @@ bool CClient::VProcessSetConVar(CClient* pClient, NET_SetConVar* pMsg) //--------------------------------------------------------------------------------- bool CClient::VProcessVoiceData(CClient* pClient, CLC_VoiceData* pMsg) { +#ifndef CLIENT_DLL char voiceDataBuffer[4096]; const int bitsRead = pMsg->m_DataIn.ReadBitsClamped(voiceDataBuffer, pMsg->m_nLength); CClient* const pAdj = AdjustShiftedThisPointer(pClient); SV_BroadcastVoiceData(pAdj, Bits2Bytes(bitsRead), voiceDataBuffer); +#endif // !CLIENT_DLL return true; } @@ -550,12 +552,14 @@ bool CClient::VProcessVoiceData(CClient* pClient, CLC_VoiceData* pMsg) //--------------------------------------------------------------------------------- bool CClient::VProcessDurangoVoiceData(CClient* pClient, CLC_DurangoVoiceData* pMsg) { +#ifndef CLIENT_DLL char voiceDataBuffer[4096]; const int bitsRead = pMsg->m_DataIn.ReadBitsClamped(voiceDataBuffer, pMsg->m_nLength); CClient* const pAdj = AdjustShiftedThisPointer(pClient); SV_BroadcastDurangoVoiceData(pAdj, Bits2Bytes(bitsRead), voiceDataBuffer, pMsg->m_xid, pMsg->m_unknown, pMsg->m_useVoiceStream, pMsg->m_skipXidCheck); +#endif // !CLIENT_DLL return true; }