diff options
-rw-r--r-- | logic/tracker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 95f7b38f..bb207e22 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -294,10 +294,6 @@ void Tracker::logic() for (int i = 3; i < 6; i++) value(i) = map(value(i), m(i)); - if (get(f_zero)) - for (int i = 0; i < 6; i++) - value(i) = 0; - const bool reltrans = !get(f_tcomp_disabled); if (s.tcomp_p && reltrans) @@ -347,6 +343,10 @@ void Tracker::logic() (void) map(raw_6dof(i), m(i)); } + if (get(f_zero)) + for (int i = 0; i < 6; i++) + value(i) = 0; + // custom zero position for (int i = 0; i < 6; i++) value(i) += m(i).opts.zero * (m(i).opts.invert ? -1 : 1); |