From 6e5f8bd85fb3acf363b664dc9c5580c309407455 Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 22 Nov 2019 22:23:41 +0100 Subject: [PATCH] Bug fix with voice chat --- gamemode/engine/core/server/sv_player_voice.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/engine/core/server/sv_player_voice.lua b/gamemode/engine/core/server/sv_player_voice.lua index 43c634b..5f8bb21 100644 --- a/gamemode/engine/core/server/sv_player_voice.lua +++ b/gamemode/engine/core/server/sv_player_voice.lua @@ -6,5 +6,5 @@ -- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ function GM:PlayerCanHearPlayersVoice( lis, talk ) - if( lis:GetPos():Distance( talk:GetPos() ) > Quantum.Server.Settings.VoiceChatRange ) then return false, true end + if( lis:GetPos():Distance( talk:GetPos() ) <= Quantum.Server.Settings.VoiceChatRange ) then return false, true end end \ No newline at end of file