Clear kill list on new match
This commit is contained in:
parent
7acf79df24
commit
f2c864ac04
2 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
|||
ctf
|
||||
ctf_match
|
||||
hudkit
|
||||
irc?
|
||||
|
|
|
@ -146,14 +146,12 @@ function ctf_events.update(player)
|
|||
end
|
||||
|
||||
function ctf_events.update_all()
|
||||
print("Updating ctf_event logs for all players")
|
||||
for _, player in pairs(minetest.get_connected_players()) do
|
||||
ctf_events.update(player)
|
||||
end
|
||||
end
|
||||
|
||||
ctf.register_on_killedplayer(function(victim, killer, type)
|
||||
print("Player killed, posting ctf_event")
|
||||
ctf_events.post("kill_" .. type, killer, victim)
|
||||
ctf_events.update_all()
|
||||
end)
|
||||
|
@ -162,7 +160,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
ctf_events.update(player)
|
||||
end)
|
||||
|
||||
ctf.register_on_new_game(function()
|
||||
ctf_match.register_on_new_match(function()
|
||||
ctf_events.events = {}
|
||||
ctf_events.update_all()
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue