diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-07-26 17:24:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-07-26 17:25:10 -0300 |
commit | 9151eb591dcab408d3a7e4d9e3b3874c2e281acf (patch) | |
tree | 15531f24cc3ec63a13810bb442a68472f3f77de9 /modules/gdscript | |
parent | 8d4d167234e08fe0de74ea29814febd5b7a272f8 (diff) |
Changed the way the step decimals are computed to a safer way, fixes many issues.
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gd_functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index b9815a5efd..a565e866d0 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -304,7 +304,7 @@ void GDFunctions::call(Function p_func,const Variant **p_args,int p_arg_count,Va case MATH_DECIMALS: { VALIDATE_ARG_COUNT(1); VALIDATE_ARG_NUM(0); - r_ret=Math::decimals(*p_args[0]); + r_ret=Math::step_decimals(*p_args[0]); } break; case MATH_STEPIFY: { VALIDATE_ARG_COUNT(2); |