diff options
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r-- | logic/tracker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 533a6f54..57995d37 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -147,6 +147,8 @@ void Tracker::logic() using std::copysign; using std::fabs; + value(i) = std::fmod(value(i), 360); + const double x = value(i); if (fabs(x) - 1e-2 > 180) value(i) = fmod(x + copysign(180, x), 360) - copysign(180, x); |