From 398bb31956cee88cbbdc88a5040532309e4acc1d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 24 Sep 2016 14:13:34 +0200 Subject: logic/tracker: use enum values --- logic/tracker.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'logic') diff --git a/logic/tracker.cpp b/logic/tracker.cpp index a2c913d3..d7f75e38 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -69,19 +69,19 @@ void Tracker::t_compensate(const rmat& rmat, const euler_t& xyz, euler_t& output const euler_t ret = rmat * euler_t(xyz(TZ), -xyz(TX), -xyz(TY)); if (disable_tz) - output(2) = xyz(TZ); + output(TZ) = xyz(TZ); else - output(2) = ret(0); + output(TZ) = ret(0); if (disable_ty) - output(1) = xyz(TY); + output(TY) = xyz(TY); else - output(1) = -ret(2); + output(TY) = -ret(2); if (disable_tx) - output(0) = xyz(TX); + output(TX) = xyz(TX); else - output(0) = -ret(1); + output(TX) = -ret(1); } #include "compat/nan.hpp" -- cgit v1.2.3