From 83e95f2d3b48033e8d11264ecf7709248e2ac16d Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Fri, 29 Nov 2019 17:57:28 +0100 Subject: [PATCH] Fixed voice chat bug --- 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..7837478 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 + return lis:GetPos():Distance( talk:GetPos() ) <= Quantum.Server.Settings.VoiceChatRange, true end \ No newline at end of file