mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00: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.
|
// clear the network channel, too.
|
||||||
Netchan_Clear( &cls.netchan );
|
Netchan_Clear( &cls.netchan );
|
||||||
|
Voice_RecordStop();
|
||||||
|
|
||||||
IN_LockInputDevices( false ); // unlock input devices
|
IN_LockInputDevices( false ); // unlock input devices
|
||||||
|
|
||||||
|
@ -1868,7 +1868,7 @@ S_VoiceRecordStart_f
|
|||||||
*/
|
*/
|
||||||
void S_VoiceRecordStart_f( void )
|
void S_VoiceRecordStart_f( void )
|
||||||
{
|
{
|
||||||
if( cls.state != ca_active )
|
if( cls.state != ca_active || cls.legacymode )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Voice_RecordStart();
|
Voice_RecordStart();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user