summaryrefslogtreecommitdiff
path: root/src/velocityfilter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/velocityfilter.cc')
-rw-r--r--src/velocityfilter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/velocityfilter.cc b/src/velocityfilter.cc
index 81587d5..04bb9d1 100644
--- a/src/velocityfilter.cc
+++ b/src/velocityfilter.cc
@@ -38,10 +38,10 @@ bool VelocityFilter::filter(event_t& event, size_t pos)
{
if (settings.enable_velocity_modifier.load())
{
- float mean = event.velocity;
+ float mean = event.velocity_or_state;
float stddev = settings.velocity_stddev.load();
// the 30.0f were determined empirically
- event.velocity = random.normalDistribution(mean, stddev / 30.0f);
+ event.velocity_or_state = random.normalDistribution(mean, stddev / 30.0f);
}
return true;