Clear events on new game

This commit is contained in:
rubenwardy 2016-04-05 17:28:07 +01:00
parent 03c52da72c
commit 3c0e0c0024

View file

@ -27,6 +27,11 @@ ctf.register_on_killedplayer(function(victim, killer, type)
ctf_events.update_all()
end)
ctf.register_on_new_game(function()
ctf_events.events = {}
ctf_events.update_all()
end)
function ctf_events.update_row(i, player, name, tplayer, evt)
local idx = "ctf_events:" .. i .. "_one"
local idxa = "ctf_events:" .. i .. "_action"