diff options
| author | Jacob Palecki <[email protected]> | 2020-09-29 10:08:13 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-29 10:08:13 -0700 |
| commit | 49675a0fa01a1d7f04a7a2e31ec1872125a0cf37 (patch) | |
| tree | ac4a331892ff777de67deb8b8be8905bb017434e /common | |
| parent | Use 0 for cap\offset when not visible (diff) | |
| parent | set invisible args to default values before write (diff) | |
| download | rawaccel-49675a0fa01a1d7f04a7a2e31ec1872125a0cf37.tar.xz rawaccel-49675a0fa01a1d7f04a7a2e31ec1872125a0cf37.zip | |
merge + small fixes
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 5106268..67a1b8f 100644 --- a/common/accel-base.hpp +++ b/common/accel-base.hpp @@ -48,7 +48,7 @@ namespace rawaccel { struct nonadditive_accel : accel_val_base<Func> { nonadditive_accel(const accel_args& args) : accel_val_base(args) { - if (args.weight != 0) weight = args.weight; + if (args.weight > 0) weight = args.weight; } inline double operator()(double speed) const { |