From 9552d3330793d48d196c1b07e69638168c776413 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 8 Jun 2018 22:15:43 +0200 Subject: Replaces erlang:ceil by sh_math_util:ceil. So that I can run the server on the dev machines that somehow don't have erlang:ceil. --- src/shared/struct/sh_armor.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared/struct/sh_armor.erl') diff --git a/src/shared/struct/sh_armor.erl b/src/shared/struct/sh_armor.erl index f328fdf..dcbb379 100644 --- a/src/shared/struct/sh_armor.erl +++ b/src/shared/struct/sh_armor.erl @@ -119,7 +119,7 @@ apply_to_attributes (Ar, Att) -> Speed = sh_attributes:get_speed(Att), Strength = sh_attributes:get_strength(Att), Mind = sh_attributes:get_mind(Att), - Impact = erlang:ceil(20.0 * Ar#armor.coef), + Impact = sh_math_util:ceil(20.0 * Ar#armor.coef), Category = Ar#armor.category, case Category of @@ -166,4 +166,4 @@ get_resistance_to (DamageType, Armor) -> ArmorCoefficient = Armor#armor.coef, ActualResistance = (ArmorCoefficient * BaseResistance), - erlang:ceil(ActualResistance). + sh_math_util:ceil(ActualResistance). -- cgit v1.2.3-70-g09d2