Fix some typos
This commit is contained in:
parent
8c073e1b0d
commit
59d220f9a2
@ -90,13 +90,14 @@ function ctf.count_players_in_team(team)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ctf.new_player(name)
|
function ctf.new_player(name)
|
||||||
if not name then
|
if name then
|
||||||
ctf.error("team", "Can't create a blank player")
|
|
||||||
ctf.log("team", debug.traceback())
|
|
||||||
end
|
|
||||||
ctf.players[name] = {
|
ctf.players[name] = {
|
||||||
name = name
|
name = name
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
ctf.error("team", "Can't create a blank player")
|
||||||
|
ctf.log("team", debug.traceback())
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get a player
|
-- get a player
|
||||||
|
@ -27,10 +27,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
|
|
||||||
-- Settings page
|
-- Settings page
|
||||||
if fields.save then
|
if fields.save then
|
||||||
ctf.gui.show(name, "settings")
|
local name = player:get_player_name()
|
||||||
|
|
||||||
local pdata = ctf.player(name)
|
local pdata = ctf.player(name)
|
||||||
local team = ctf.team(pdata.team)
|
local team = ctf.team(pdata.team)
|
||||||
|
|
||||||
|
ctf.gui.show(name, "settings")
|
||||||
if team and ctf.can_mod(name, pdata.team) then
|
if team and ctf.can_mod(name, pdata.team) then
|
||||||
if ctf.flag_colors[fields.color] then
|
if ctf.flag_colors[fields.color] then
|
||||||
team.data.color = fields.color
|
team.data.color = fields.color
|
||||||
|
Loading…
x
Reference in New Issue
Block a user