Add debug to help catch ctf_marker crash
This commit is contained in:
parent
c2e7543ff3
commit
6700266ff6
1 changed files with 5 additions and 1 deletions
|
@ -37,12 +37,16 @@ function ctf_marker.add_marker(name, tname, pos, str)
|
|||
|
||||
local team = ctf.team(tname)
|
||||
|
||||
if not tname then
|
||||
minetest.log("error", "Team name not provided to ctf_marker.add_marker()")
|
||||
end
|
||||
|
||||
teams[tname] = {
|
||||
players = {},
|
||||
time = 0
|
||||
}
|
||||
|
||||
for pname, _ in pairs(team.players) do
|
||||
for pname in pairs(team.players) do
|
||||
local tplayer = minetest.get_player_by_name(pname)
|
||||
if tplayer then
|
||||
teams[tname].players[pname] = tplayer:hud_add({
|
||||
|
|
Loading…
Reference in a new issue