diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-09-16 19:32:58 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-09-17 22:22:34 +0200 |
commit | 0f9178568b3470d35ffc1d5e21a230d8cc11eef1 (patch) | |
tree | e6b421513dfac9908ae727290ab7ec947842cdf3 /src/core/General.h | |
parent | Merge pull request #208 from Nick007J/master (diff) | |
download | re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.tar re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.tar.gz re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.tar.bz2 re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.tar.lz re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.tar.xz re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.tar.zst re3-0f9178568b3470d35ffc1d5e21a230d8cc11eef1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/General.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/General.h b/src/core/General.h index 366c571c..d73cf36f 100644 --- a/src/core/General.h +++ b/src/core/General.h @@ -54,14 +54,7 @@ public: static float LimitRadianAngle(float angle) { - float result; - - if (angle < -25.0f) - result = -25.0f; - else if (angle > 25.0f) - result = 25.0f; - else - result = angle; + float result = clamp(angle, -25.0f, 25.0f); while (result >= PI) { result -= 2 * PI; |