1
0

Remove vararg funcs (#4)

This commit is contained in:
Brandon Sturgeon 2024-05-06 19:47:16 -07:00 committed by GitHub
parent e95caad48f
commit f17b64ca4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -427,12 +427,6 @@ e2function void sendMessageColor(array arr)
printColorArray(self.player, player.GetAll(), arr)
end
e2function void sendMessageColor(...)
if not hasAccess(self.player, nil, "globalmessagecolor") then return nil end
printColorVarArg(self.player, player.GetAll(), typeids, ...)
end
e2function void entity:sendMessageColor(array arr)
if not ValidPly(this) then return end
if not hasAccess(self.player, this, "messagecolor") then return nil end
@ -440,13 +434,6 @@ e2function void entity:sendMessageColor(array arr)
printColorArray(self.player, this, arr)
end
e2function void entity:sendMessageColor(...)
if not ValidPly(this) then return end
if not hasAccess(self.player, this, "messagecolor") then return nil end
printColorVarArg(self.player, this, typeids, ...)
end
e2function void array:sendMessageColor(array arr)
if not hasAccess(self.player, nil, "messagecolor") then return end
@ -463,22 +450,6 @@ e2function void array:sendMessageColor(array arr)
printColorArray(self.player, plys, arr)
end
e2function void array:sendMessageColor(...)
if not hasAccess(self.player, nil, "messagecolor") then return end
local plys = {}
for _, ply in pairs(this) do
if ValidPly(ply) then
if hasAccess(self.player, ply, "messagecolor") ~= false then
table.insert(plys, ply)
end
end
end
printColorVarArg(self.player, plys, typeids, ...)
end
--[[############################################]]