diff options
| author | Jacob Palecki <[email protected]> | 2020-09-09 20:05:19 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-09 20:05:19 -0700 |
| commit | 47730d5fcc629e7ffb93fdee1568aa846bc4c887 (patch) | |
| tree | c761bd9f3e276e08924068b31a26a78c1bf843b5 /common | |
| parent | Remove misleading comment (diff) | |
| download | rawaccel-47730d5fcc629e7ffb93fdee1568aa846bc4c887.tar.xz rawaccel-47730d5fcc629e7ffb93fdee1568aa846bc4c887.zip | |
Fix weight
Diffstat (limited to 'common')
| -rw-r--r-- | common/accel-base.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-base.hpp b/common/accel-base.hpp index 714162f..d536923 100644 --- a/common/accel-base.hpp +++ b/common/accel-base.hpp @@ -40,7 +40,7 @@ namespace rawaccel { inline double operator()(double speed) const { double offset_speed = speed - offset; - return offset_speed > 0 ? ( legacy_offset ? 1 + fn.legacy_offset(offset_speed) * weight : 1 + fn(offset_speed) ) : 1; + return offset_speed > 0 ? ( legacy_offset ? 1 + fn.legacy_offset(offset_speed) * weight : 1 + fn(offset_speed) * weight) : 1; } }; |