make lerp more stable

master
Ahmet Inan 2012-10-22 19:38:51 +02:00
rodzic 90e9fb5d9b
commit 0da40f391e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -29,7 +29,7 @@ float fclampf(float x, float min, float max)
float flerpf(float a, float b, float x) 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) char *string_time(char *fmt)