engine: client: disabled voice on legacy protocol servers

This commit is contained in:
SNMetamorph 2022-08-15 10:24:38 +04:00 committed by Alibek Omarov
parent 8866d5cfd6
commit 169ee14724
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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();