Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
This commit is contained in:
commit
5d956ffac3
2 changed files with 15 additions and 1 deletions
|
@ -165,9 +165,23 @@ minetest.register_globalstep(function(dtime)
|
|||
end)
|
||||
|
||||
ctf_match.register_on_new_match(function()
|
||||
for coward, info in pairs(potential_cowards) do
|
||||
coward = minetest.get_player_by_name(coward)
|
||||
|
||||
if coward and info.hud then
|
||||
coward:hud_remove(info.hud)
|
||||
end
|
||||
end
|
||||
potential_cowards = {}
|
||||
end)
|
||||
|
||||
ctf.register_on_new_game(function()
|
||||
for coward, info in pairs(potential_cowards) do
|
||||
coward = minetest.get_player_by_name(coward)
|
||||
|
||||
if coward and info.hud then
|
||||
coward:hud_remove(info.hud)
|
||||
end
|
||||
end
|
||||
potential_cowards = {}
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue