Medkits: Don't give back if map is skipped (#870)

This commit is contained in:
Lars Müller 2021-04-29 15:54:29 +02:00 committed by GitHub
parent 47cc8928f7
commit 4f49560569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ local function stop_healing(player, interrupted)
player:hud_remove(info.hud)
end
ctf_flag.register_on_precapture(function()
ctf_match.register_on_new_match(function()
-- Reset all player states at the end of the match
for name, info in pairs(players) do
players[name] = nil

View file

@ -1,2 +1,2 @@
name = medkits
depends = ctf_flag
depends = ctf_match