diff options
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r-- | logic/tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index cedb4459..95a60221 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -149,7 +149,7 @@ void Tracker::logic() const double x = value(i); if (fabs(x) - 1e-2 > 180) - value(i) = fmod(x - copysign(180, -x), 360) + copysign(180, x); + value(i) = fmod(x + copysign(180, x), 360) - copysign(180, x); else value(i) = clamp(x, -180, 180); } |