diff options
| author | a1xd <[email protected]> | 2021-07-06 22:03:18 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-07-06 22:03:18 -0400 |
| commit | e9d116af80824c1a58ad4be0aa7a4066db380260 (patch) | |
| tree | 7977ffb2629e279fe1a3e14efe49a6b8ef8425c1 /common | |
| parent | guard against large values of smooth_rate for jump types (diff) | |
| download | rawaccel-e9d116af80824c1a58ad4be0aa7a4066db380260.tar.xz rawaccel-e9d116af80824c1a58ad4be0aa7a4066db380260.zip | |
bugfix - off by 1
Diffstat (limited to 'common')
| -rw-r--r-- | common/accel-jump.hpp | 2 |
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; } }; |