You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Remove ABS in favor of Math::abs
This commit is contained in:
@@ -865,7 +865,7 @@ EditorPlugin::AfterGUIInput GridMapEditor::forward_spatial_input_event(Camera3D
|
||||
const real_t delta = pan_gesture->get_delta().y * 0.5;
|
||||
accumulated_floor_delta += delta;
|
||||
int step = 0;
|
||||
if (ABS(accumulated_floor_delta) > 1.0) {
|
||||
if (Math::abs(accumulated_floor_delta) > 1.0) {
|
||||
step = SIGN(accumulated_floor_delta);
|
||||
accumulated_floor_delta -= step;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user