From e36a80f73023514931ec3354f7427db7245553a6 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 16 Jun 2019 23:37:16 +0200 Subject: [PATCH] Code tweaks --- src/shapes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shapes.c b/src/shapes.c index 64beb8ca..bab8a5a4 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -1474,9 +1474,10 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) // NOTE: Required for DrawLineBezier() static float EaseCubicInOut(float t, float b, float c, float d) { - if ((t /= 0.5f*d) < 1) - return 0.5f*c*t*t*t + b; + if ((t /= 0.5f*d) < 1) return 0.5f*c*t*t*t + b; + t -= 2; + return 0.5f*c*(t*t*t + 2.0f) + b; }