Skip to content

Commit

Permalink
fix[pma-voice]: fixing some mislabeled variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nerohiro committed Nov 28, 2021
1 parent b4e9185 commit 2b25f17
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 2b25f17

Please sign in to comment.