diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/accel-natural.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-natural.hpp b/common/accel-natural.hpp index 1f18e0d..28e17c2 100644 --- a/common/accel-natural.hpp +++ b/common/accel-natural.hpp @@ -28,7 +28,7 @@ namespace rawaccel { double offset_x = x - offset; double decay = exp(-accel * offset_x); - return limit * (1 - (decay)) + 1; + return limit * (1 - (decay * offset_x + offset) / x) + 1; } using natural_base::natural_base; |