mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge pull request #7866 from Hinsbart/tween_fix
Fix undefined behavior found by static code analyzer.
This commit is contained in:
@@ -262,7 +262,8 @@ namespace cubic {
|
|||||||
|
|
||||||
static real_t out(real_t t, real_t b, real_t c, real_t d)
|
static real_t out(real_t t, real_t b, real_t c, real_t d)
|
||||||
{
|
{
|
||||||
return c * ((t = t / d - 1) * t * t + 1) + b;
|
t = t / d - 1;
|
||||||
|
return c * (t * t * t + 1) + b;
|
||||||
}
|
}
|
||||||
|
|
||||||
static real_t in_out(real_t t, real_t b, real_t c, real_t d)
|
static real_t in_out(real_t t, real_t b, real_t c, real_t d)
|
||||||
|
|||||||
Reference in New Issue
Block a user