Peds, a fix and a tad of VC

This commit is contained in:
eray orçunus
2019-09-16 20:32:58 +03:00
parent ca6d2d3181
commit 0f9178568b
9 changed files with 827 additions and 123 deletions

View File

@@ -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;