Skip to content

Commit

Permalink
Explicit false check
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCloudAT committed Nov 2, 2024
1 parent 4a101a7 commit 93f91a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/server/sv_player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ local function PlayDeathSound(victim, isSilent)
sound = deathsounds[math.random(deathsounds_count)],
}

if not hook.Run("TTT2PlayDeathScream", tbl, isSilent) then return end
if hook.Run("TTT2PlayDeathScream", tbl, isSilent) == false then return end

Check failure on line 685 in gamemodes/terrortown/gamemode/server/sv_player.lua

View workflow job for this annotation

GitHub Actions / doc-check

Missing essential param --> "Missing '@realm' in hook 'GM:TTT2PlayDeathScream'"

sound.Play(tbl["sound"], victim:GetShootPos(), 90, 100)
end
Expand Down

0 comments on commit 93f91a1

Please sign in to comment.