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
|
@ -1 +1 @@
|
||||||
Subproject commit c6fd7bedd4a68806397ee31a810b236d85307379
|
Subproject commit eb881181cc54c3dac444cfa91fa63baf1557d02f
|
|
@ -165,9 +165,23 @@ minetest.register_globalstep(function(dtime)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
ctf_match.register_on_new_match(function()
|
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 = {}
|
potential_cowards = {}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
ctf.register_on_new_game(function()
|
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 = {}
|
potential_cowards = {}
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue