summaryrefslogtreecommitdiff
path: root/src/staminafilter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/staminafilter.cc')
-rw-r--r--src/staminafilter.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/staminafilter.cc b/src/staminafilter.cc
index 8fdbfbb..a8f6a86 100644
--- a/src/staminafilter.cc
+++ b/src/staminafilter.cc
@@ -76,16 +76,5 @@ bool StaminaFilter::filter(event_t& event, size_t pos)
mod *= velocity_modifier_weight;
}
- {
- auto velocity_modifier_current = settings.velocity_modifier_current.load();
- float p = 0.9f;
- float new_value = mod * p + velocity_modifier_current * (1.0f - p);
- if(mod > new_value)
- {
- new_value = mod;
- }
- settings.velocity_modifier_current.store(new_value);
- }
-
return true;
}