Fix incorrect usage of math.min
This commit is contained in:
parent
615d4369f6
commit
fdfad82844
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function kill_assist.reward_assists(victim, killer, reward)
|
|||
local color = "0x00FFFF"
|
||||
|
||||
if name == killer or help_percent >= 0.33 then
|
||||
reward = math.min(math.floor((reward * help_percent)*100)/100, 1)
|
||||
reward = math.max(math.floor((reward * help_percent)*100)/100, 0)
|
||||
end
|
||||
|
||||
match.score = match.score + reward
|
||||
|
|
Loading…
Reference in a new issue