Change greater than operations to greater than or equal to in is_pro (#528)

This commit is contained in:
MinetestSam 2019-12-16 01:17:19 +05:30 committed by Thomas--S
parent d25e060d90
commit daafb12363

View file

@ -198,7 +198,7 @@ end
function ctf_stats.is_pro(name)
local stats = ctf_stats.player(name)
local kd = stats.kills / (stats.deaths == 0 and 1 or stats.deaths)
return stats.score > 10000 and kd > 1.5
return stats.score >= 10000 and kd >= 1.5
end
ctf.register_on_join_team(function(name, tname)