engine: client: disabled voice on legacy protocol servers
This commit is contained in:
parent
8866d5cfd6
commit
169ee14724
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue