mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
@@ -246,7 +246,7 @@ void EditorSpinSlider::_value_input_gui_input(const Ref<InputEvent> &p_event) {
|
||||
if (step < 1) {
|
||||
double divisor = 1.0 / step;
|
||||
|
||||
if (trunc(divisor) == divisor) {
|
||||
if (std::trunc(divisor) == divisor) {
|
||||
step = 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user