summaryrefslogtreecommitdiff
path: root/src/velocityfilter.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2019-07-22 22:15:46 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2019-07-22 22:15:46 +0200
commit4e83b447020c8ddce7e8b4f2b591dc42585df138 (patch)
tree85484bd308a0cd5379fe6477c216b55e2d0d5490 /src/velocityfilter.cc
parentbf75eb9f0f11d4eae23dbb031f088877dfd5c125 (diff)
Fix humanizer bug and simplify stamina filter code.
Diffstat (limited to 'src/velocityfilter.cc')
-rw-r--r--src/velocityfilter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/velocityfilter.cc b/src/velocityfilter.cc
index a983692..81587d5 100644
--- a/src/velocityfilter.cc
+++ b/src/velocityfilter.cc
@@ -41,7 +41,7 @@ bool VelocityFilter::filter(event_t& event, size_t pos)
float mean = event.velocity;
float stddev = settings.velocity_stddev.load();
// the 30.0f were determined empirically
- event.velocity += random.normalDistribution(mean, stddev / 30.0f);
+ event.velocity = random.normalDistribution(mean, stddev / 30.0f);
}
return true;