Reset the vote when new match starts

Bugfix for #46
code from /vote_clear
Warning: This is untested
This commit is contained in:
Thomas--S 2016-02-10 20:34:18 +01:00
parent e47d914b4d
commit df64a840ac

View file

@ -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