Skip to content

Commit

Permalink
Linter pass
Browse files Browse the repository at this point in the history
  • Loading branch information
stepa2 committed Mar 7, 2024
1 parent 9c5e1b3 commit c778e8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lua/entities/gmod_wire_adv_microphone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ local function Mic_SetLive(self, isLive)
self:AddEFlags(EFL_FORCE_CHECK_TRANSMIT)
end

if isLive then
if isLive then
if LiveMics[1] == nil then -- Adding first microphone to live list
hook.Add("PlayerCanHearPlayersVoice", "Wire.AdvMicrophone", PlayerCanHearPlayersVoice_Hook)
end
end

if not table.HasValue(LiveMics, self) then
table.insert(LiveMics, self)
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/gmod_wire_adv_speaker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if SERVER then

function ENT:Think()
if not self:GetActive() then return end

local mic = self:GetMicrophone()
if not IsValid(mic) or not mic:GetActive() then return end

Expand Down
6 changes: 3 additions & 3 deletions lua/wire/soundlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ local function WavIsLooped_Impl(path)
local id, len = Riff_ReadChunkHeader(fil)
if id == "cue " or id == "smpl" then resultid = id break end
if id == nil then
ErrorNoHaltWithStack("WavIsLooped_Impl: Can't analyze file ", path)
return false
ErrorNoHaltWithStack("WavIsLooped_Impl: Can't analyze file ", path)
return false
end -- Some error

local p1 = fil:Tell()
Expand Down Expand Up @@ -145,7 +145,7 @@ end
function DCACHE:Think()
local ent = self._ent
if not IsValid(ent) then return end

local plys = {}
self.PlayersInRange = plys

Expand Down

0 comments on commit c778e8f

Please sign in to comment.