- made the threat module use raw threat percentages by default so that its display matches Omen's.

- added an option to the threat module to display the scaled percent (the old method) instead of raw. this will cause it to disagree with Omen, but it's displaying the same information, only in a different way
This commit is contained in:
Parnic
2009-01-07 04:23:00 +00:00
parent adab3a7ae3
commit 72363e27e3
2 changed files with 39 additions and 3 deletions

View File

@ -677,6 +677,10 @@ end
-- rounding stuff
function IceHUD:MathRound(num, idp)
if not num then
return nil
end
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end