summaryrefslogtreecommitdiffstats
path: root/src/core/General.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/General.h')
-rw-r--r--src/core/General.h9
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;