Fixed autorank

This commit is contained in:
Cooldude2606
2017-12-24 21:53:56 +00:00
parent a001afa19e
commit fc73cf0d96

View File

@@ -172,7 +172,7 @@ function Ranking.find_preset(player,tick)
end
local _rank = nil
for _,rank in pairs(ranks) do
if rank.power < current_rank.power then _rank = rank end
if rank.power < current_rank.power or current_rank.power == -1 then _rank = rank end
end
if _rank then
if _rank.name == default.name then