summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-29 10:08:13 -0700
committerJacob Palecki <[email protected]>2020-09-29 10:08:13 -0700
commit49675a0fa01a1d7f04a7a2e31ec1872125a0cf37 (patch)
treeac4a331892ff777de67deb8b8be8905bb017434e /common
parentUse 0 for cap\offset when not visible (diff)
parentset invisible args to default values before write (diff)
downloadrawaccel-49675a0fa01a1d7f04a7a2e31ec1872125a0cf37.tar.xz
rawaccel-49675a0fa01a1d7f04a7a2e31ec1872125a0cf37.zip
merge + small fixes
Diffstat (limited to 'common')
-rw-r--r--common/accel-base.hpp2
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 {