summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJacobPalecki <[email protected]>2020-09-29 13:17:50 -0700
committerGitHub <[email protected]>2020-09-29 13:17:50 -0700
commit46e310b9168e2a662ca934bb2c924eea91d88d7f (patch)
treeb64eb67b725cab86edd5d8464216c50361ebebe8 /common
parentMerge pull request #27 from JacobPalecki/GUI (diff)
parentPotential link fix, better power pic (diff)
downloadrawaccel-46e310b9168e2a662ca934bb2c924eea91d88d7f.tar.xz
rawaccel-46e310b9168e2a662ca934bb2c924eea91d88d7f.zip
Merge pull request #28 from a1xd/initial-release
interaccel converter
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 {