mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: don't broadcast voice data on training dedi
Training dedi doesn't support broadcasting voice data, return out.
This commit is contained in:
parent
9db094b98d
commit
1b6d37725b
@ -164,6 +164,9 @@ bool SV_ActivateServer()
|
||||
|
||||
void SV_BroadcastVoiceData(CClient* const cl, const int nBytes, char* const data)
|
||||
{
|
||||
if (IsTrainingDedi())
|
||||
return;
|
||||
|
||||
if (!sv_voiceenable->GetBool())
|
||||
return;
|
||||
|
||||
@ -174,7 +177,7 @@ void SV_BroadcastVoiceData(CClient* const cl, const int nBytes, char* const data
|
||||
|
||||
for (int i = 0; i < g_ServerGlobalVariables->m_nMaxClients; i++)
|
||||
{
|
||||
CClient* pClient = g_pServer->GetClient(i);
|
||||
CClient* const pClient = g_pServer->GetClient(i);
|
||||
|
||||
if (!pClient)
|
||||
continue;
|
||||
@ -194,7 +197,7 @@ void SV_BroadcastVoiceData(CClient* const cl, const int nBytes, char* const data
|
||||
// there's also supposed to be some xplat checks here
|
||||
// but since r5r is only on PC, there's no point in implementing them here
|
||||
|
||||
CNetChan* pNetChan = pClient->GetNetChan();
|
||||
CNetChan* const pNetChan = pClient->GetNetChan();
|
||||
|
||||
if (!pNetChan)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user