Skip to content

Commit

Permalink
Fixed the mute button in the scoreboard not working
Browse files Browse the repository at this point in the history
  • Loading branch information
TW1STaL1CKY committed Jan 2, 2025
1 parent dd72a97 commit 54cde02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- Fixed binoculars zooming not being predicted (by @Histalek)
- Fixed an error when trying to pickup a placed equipment (e.g. beacon) (by @Histalek)
- Fixed corpse searching sound playing when searched by a spectator, searched covertly, or searched long range (by @TW1STaL1CKY)
- Fixed the mute button in the scoreboard not working (by @TW1STaL1CKY)

### Changed

Expand Down
4 changes: 2 additions & 2 deletions gamemodes/terrortown/gamemode/client/cl_voice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ end
-- @realm client
function VOICE.UpdatePlayerVoiceVolume(ply)
local mute = VOICE.GetPreferredPlayerVoiceMuted(ply)
if ply.SetMute then
ply:SetMute(mute)
if ply.SetMuted then
ply:SetMuted(mute)
end

local vol = VOICE.GetPreferredPlayerVoiceVolume(ply)
Expand Down

0 comments on commit 54cde02

Please sign in to comment.