aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/glue/cs_files/Mathf.cs
diff options
context:
space:
mode:
authorXavier Cho2018-04-08 12:28:24 +0900
committerXavier Cho2018-04-17 07:39:37 +0900
commit0ef3e0577b4c3889d19e6f301e06fba39e8187d5 (patch)
treeeb58943180f4c509caf990d2780782aa1f74f550 /modules/mono/glue/cs_files/Mathf.cs
parent9e2e6bb1e236e5d99d74dca0cd5d31d533b76c2e (diff)
downloadgodot-0ef3e0577b4c3889d19e6f301e06fba39e8187d5.tar.gz
godot-0ef3e0577b4c3889d19e6f301e06fba39e8187d5.tar.zst
godot-0ef3e0577b4c3889d19e6f301e06fba39e8187d5.zip
Diffstat (limited to 'modules/mono/glue/cs_files/Mathf.cs')
-rw-r--r--modules/mono/glue/cs_files/Mathf.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/mono/glue/cs_files/Mathf.cs b/modules/mono/glue/cs_files/Mathf.cs
index 040e7bf56..d6655aa1e 100644
--- a/modules/mono/glue/cs_files/Mathf.cs
+++ b/modules/mono/glue/cs_files/Mathf.cs
@@ -1,5 +1,4 @@
using System;
-
#if REAL_T_IS_DOUBLE
using real_t = System.Double;
#else
@@ -115,7 +114,8 @@ namespace Godot
return Pow(s, curve);
}
- else if (curve < 0f)
+
+ if (curve < 0f)
{
if (s < 0.5f)
{
@@ -144,10 +144,8 @@ namespace Godot
{
return x % y;
}
- else
- {
- return y - (-x % y);
- }
+
+ return y - (-x % y);
}
public static real_t InverseLerp(real_t from, real_t to, real_t weight)