mirror of
https://github.com/godotengine/godot
synced 2024-09-16 01:30:26 +00:00
Fix wrong floori() behavior
This commit is contained in:
parent
c2f66648f1
commit
7499f41264
|
@ -129,7 +129,7 @@ struct VariantUtilityFunctions {
|
|||
}
|
||||
|
||||
static inline int floori(double x) {
|
||||
return int(x);
|
||||
return int(Math::floor(x));
|
||||
}
|
||||
|
||||
static inline Variant ceil(Variant x, Callable::CallError &r_error) {
|
||||
|
|
Loading…
Reference in a new issue