Merge pull request #47 from Thomas--S/patch-1
Reset the vote when new match starts
This commit is contained in:
commit
3070001a88
1 changed files with 10 additions and 0 deletions
|
@ -15,9 +15,19 @@ function ctf_match.next()
|
||||||
|
|
||||||
minetest.after(1, function()
|
minetest.after(1, function()
|
||||||
ctf.reset()
|
ctf.reset()
|
||||||
|
if vote then
|
||||||
|
vote.active = {}
|
||||||
|
vote.queue = {}
|
||||||
|
vote.update_all_hud()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
ctf.reset()
|
ctf.reset()
|
||||||
|
if vote then
|
||||||
|
vote.active = {}
|
||||||
|
vote.queue = {}
|
||||||
|
vote.update_all_hud()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue