Remove unused arg from ctf_colors.get_color and ctf_colors.get_irc_color

This commit is contained in:
ClobberXD 2018-11-29 21:23:27 +05:30 committed by rubenwardy
parent a3989a6807
commit ed5239cb56
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ local bountied_player = nil
local bounty_score = 0
local function announce(name)
local _, tcolor = ctf_colors.get_color(bountied_player, ctf.player(bountied_player))
local _, tcolor = ctf_colors.get_color(ctf.player(bountied_player))
tcolor = tcolor:gsub("0x", "#")
minetest.chat_send_player(name,
minetest.colorize("#fff326", "The next person to kill ") ..

View file

@ -20,7 +20,7 @@ local function get_colorcodes(name)
if not name then
return "", ""
end
local color = ctf_colors.get_irc_color(name, ctf.player(name))
local color = ctf_colors.get_irc_color(ctf.player(name))
local clear = "\x0F"
if color then
color = "\x03" .. color
@ -69,7 +69,7 @@ function ctf_events.update_row(i, player, name, tplayer, evt)
-- One
if evt.one then
local _, tone_hex = ctf_colors.get_color(evt.one, ctf.player(evt.one))
local _, tone_hex = ctf_colors.get_color(ctf.player(evt.one))
if hud:exists(player, idx) then
hud:change(player, idx, "text", evt.one)
hud:change(player, idx, "number", tone_hex)
@ -91,7 +91,7 @@ function ctf_events.update_row(i, player, name, tplayer, evt)
-- Two
if evt.two then
local _, ttwo_hex = ctf_colors.get_color(evt.two, ctf.player(evt.two))
local _, ttwo_hex = ctf_colors.get_color(ctf.player(evt.two))
if hud:exists(player, idx2) then
hud:change(player, idx2, "text", evt.two)
hud:change(player, idx2, "number", ttwo_hex)