Commit d5872d96 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix Bug

parent fb5ef388
......@@ -103,7 +103,7 @@ public:
double getIntervall()const{return intervall;}
public:
double distort(double time){
if (intervall>0,05) { // sonst division durch 0
if (intervall>0.05) { // sonst division durch 0
double diff = std::fmod(time,intervall); // wie weit sind wir in aktuellen intervall
double offset = time-diff; // offset zum intervall start
diff = distortionCurve.valueForProgress(diff/intervall)*intervall;// die verzerrung für den Aktuellen fortchritt im intervall mal die intervall größe
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment