Remove unused arg from ctf_colors.get_color and ctf_colors.get_irc_color
This commit is contained in:
parent
a3989a6807
commit
ed5239cb56
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ local bountied_player = nil
|
||||||
local bounty_score = 0
|
local bounty_score = 0
|
||||||
|
|
||||||
local function announce(name)
|
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", "#")
|
tcolor = tcolor:gsub("0x", "#")
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
minetest.colorize("#fff326", "The next person to kill ") ..
|
minetest.colorize("#fff326", "The next person to kill ") ..
|
||||||
|
|
|
@ -20,7 +20,7 @@ local function get_colorcodes(name)
|
||||||
if not name then
|
if not name then
|
||||||
return "", ""
|
return "", ""
|
||||||
end
|
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"
|
local clear = "\x0F"
|
||||||
if color then
|
if color then
|
||||||
color = "\x03" .. color
|
color = "\x03" .. color
|
||||||
|
@ -69,7 +69,7 @@ function ctf_events.update_row(i, player, name, tplayer, evt)
|
||||||
|
|
||||||
-- One
|
-- One
|
||||||
if evt.one then
|
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
|
if hud:exists(player, idx) then
|
||||||
hud:change(player, idx, "text", evt.one)
|
hud:change(player, idx, "text", evt.one)
|
||||||
hud:change(player, idx, "number", tone_hex)
|
hud:change(player, idx, "number", tone_hex)
|
||||||
|
@ -91,7 +91,7 @@ function ctf_events.update_row(i, player, name, tplayer, evt)
|
||||||
|
|
||||||
-- Two
|
-- Two
|
||||||
if evt.two then
|
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
|
if hud:exists(player, idx2) then
|
||||||
hud:change(player, idx2, "text", evt.two)
|
hud:change(player, idx2, "text", evt.two)
|
||||||
hud:change(player, idx2, "number", ttwo_hex)
|
hud:change(player, idx2, "number", ttwo_hex)
|
||||||
|
|
Loading…
Reference in a new issue