Fix county being awarded on suicide

This commit is contained in:
ClobberXD 2018-07-12 23:11:56 +05:30 committed by rubenwardy
parent 55b9ecf4a8
commit c7a8998b7c

View file

@ -80,6 +80,10 @@ minetest.register_on_joinplayer(function(player)
end)
ctf.register_on_killedplayer(function(victim, killer)
-- Suicide is not encouraged here at CTF
if victim == killer then
return
end
if victim == bountied_player then
local main, match = ctf_stats.player(killer)
if main and match then