mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
engine: client: disabled voice on legacy protocol servers
This commit is contained in:
parent
8866d5cfd6
commit
169ee14724
@ -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…
Reference in New Issue
Block a user