make lerp more stable

This commit is contained in:
Ahmet Inan 2012-10-22 19:38:51 +02:00
parent 90e9fb5d9b
commit 0da40f391e

View file

@ -29,7 +29,7 @@ float fclampf(float x, float min, float max)
float flerpf(float a, float b, float x)
{
return a - a * x + b * x;
return a * (1.0 - x) + b * x;
}
char *string_time(char *fmt)