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
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
18 changed files with 34 additions and 34 deletions

View file

@ -91,7 +91,7 @@ real_t Vector2::cross(const Vector2 &p_other) const {
}
Vector2 Vector2::sign() const {
return Vector2(SGN(x), SGN(y));
return Vector2(SIGN(x), SIGN(y));
}
Vector2 Vector2::floor() const {