summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-07-06 22:03:18 -0400
committera1xd <[email protected]>2021-07-06 22:03:18 -0400
commite9d116af80824c1a58ad4be0aa7a4066db380260 (patch)
tree7977ffb2629e279fe1a3e14efe49a6b8ef8425c1 /common
parentguard against large values of smooth_rate for jump types (diff)
downloadrawaccel-e9d116af80824c1a58ad4be0aa7a4066db380260.tar.xz
rawaccel-e9d116af80824c1a58ad4be0aa7a4066db380260.zip
bugfix - off by 1
Diffstat (limited to 'common')
-rw-r--r--common/accel-jump.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-jump.hpp b/common/accel-jump.hpp
index 47a1a30..95fa461 100644
--- a/common/accel-jump.hpp
+++ b/common/accel-jump.hpp
@@ -52,7 +52,7 @@ namespace rawaccel {
{
if (is_smooth()) return smooth(x) + 1;
else if (x < step.x) return 1;
- else return step.y;
+ else return 1 + step.y;
}
};