mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Changed the way the step decimals are computed to a safer way, fixes many issues.
This commit is contained in:
parent
8d4d167234
commit
9151eb591d
6 changed files with 27 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue