1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Rename built-in SGN() macro to SIGN()

This matches the name of the GDScript function (except it's uppercase
here).
This commit is contained in:
Hugo Locurcio
2021-10-16 01:22:57 +02:00
parent 5045f46a5c
commit 8fb7e622a6
18 changed files with 34 additions and 34 deletions

View File

@@ -759,7 +759,7 @@ EditorPlugin::AfterGUIInput GridMapEditor::forward_spatial_input_event(Camera3D
accumulated_floor_delta += delta;
int step = 0;
if (ABS(accumulated_floor_delta) > 1.0) {
step = SGN(accumulated_floor_delta);
step = SIGN(accumulated_floor_delta);
accumulated_floor_delta -= step;
}
if (step) {