Skip to content

Commit

Permalink
Merge pull request #215 from nerohiro/main
Browse files Browse the repository at this point in the history
fix[pma-voice]: fixing some mislabeled variables
  • Loading branch information
AvarianKnight authored Nov 28, 2021
2 parents b4e9185 + 2b25f17 commit 08584fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/init/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ local disableSubmixReset = {}
---@param enabled boolean if the players voice is getting activated or deactivated
---@param moduleType string the volume & submix to use for the voice.
function toggleVoice(plySource, enabled, moduleType)
if mutedPlayers[source] then return end
if mutedPlayers[plySource] then return end
logger.verbose('[main] Updating %s to talking: %s with submix %s', plySource, enabled, moduleType)
if enabled then
MumbleSetVolumeOverrideByServerId(plySource, enabled and volumes[moduleType])
Expand Down
2 changes: 1 addition & 1 deletion server/module/radio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function setPlayerRadio(source, _radioChannel)
-- changed
TriggerClientEvent('pma-voice:clSetPlayerRadio', source, radioChannel)
end
Player(source).state.callChannel = callChannel
Player(source).state.radioChannel = radioChannel
if radioChannel ~= 0 and plyVoice.radio == 0 then
addPlayerToRadio(source, radioChannel)
elseif radioChannel == 0 then
Expand Down

0 comments on commit 08584fd

Please sign in to comment.