mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Merge pull request #66505 from KoBeWi/floor()_and_int()_are_not_the_same_I_guess🤔
Fix wrong `floori()` behavior
This commit is contained in:
commit
92bcd3c01d
@ -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 New Issue
Block a user