From ebe34fc7957752abdc6b86a288904dac339fe035 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 18 Nov 2016 20:56:27 +0100 Subject: logic/tracker: maybe fix both camera offset modes used together --- logic/tracker.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'logic') diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 8757e98e..cfc62c84 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -260,10 +260,7 @@ void Tracker::logic() const euler_t rot = r2d * c_mult * rmat_to_euler(rotation); euler_t pos = euler_t(&value[TX]) - t_center; - if (s.use_camera_offset_from_centering) - t_compensate((real_rotation.camera * real_rotation.rot_center).t(), pos, pos, false, false, false); - else - t_compensate(real_rotation.camera.t(), pos, pos, false, false, false); + t_compensate(real_rotation.camera.t(), pos, pos, false, false, false); for (int i = 0; i < 3; i++) { -- cgit v1.2.3