Browse Source

engine: client: disabled voice on legacy protocol servers

pull/2/head
SNMetamorph 2 years ago committed by Alibek Omarov
parent
commit
169ee14724
  1. 1
      engine/client/cl_main.c
  2. 2
      engine/client/s_main.c

1
engine/client/cl_main.c

@ -1514,6 +1514,7 @@ void CL_Disconnect( void ) @@ -1514,6 +1514,7 @@ void CL_Disconnect( void )
// clear the network channel, too.
Netchan_Clear( &cls.netchan );
Voice_RecordStop();
IN_LockInputDevices( false ); // unlock input devices

2
engine/client/s_main.c

@ -1868,7 +1868,7 @@ S_VoiceRecordStart_f @@ -1868,7 +1868,7 @@ S_VoiceRecordStart_f
*/
void S_VoiceRecordStart_f( void )
{
if( cls.state != ca_active )
if( cls.state != ca_active || cls.legacymode )
return;
Voice_RecordStart();

Loading…
Cancel
Save