summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index d979b0b2..b834715a 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -214,19 +214,19 @@ void Tracker::logic()
}
{
- rmat rotation;
+ rmat rotation = scaled_rotation.rotation;
euler_t pos = euler_t(&value[TX]) - t_center;
switch (s.center_method)
{
// inertial
case 0:
- rotation = scaled_rotation.rot_center * scaled_rotation.rotation;
+ rotation = scaled_rotation.rot_center * rotation;
break;
// camera
default:
case 1:
- rotation = scaled_rotation.rotation * scaled_rotation.rot_center;
+ rotation = rotation * scaled_rotation.rot_center;
t_compensate(real_rotation.rot_center, pos, pos, false, false, false);
break;