From bba3f85e4e7c1708d82efee845e941d033c27580 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 23 Oct 2013 11:43:43 +0000 Subject: [PATCH] Reverted accidentally committed patch in r14296. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14297 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- lib/wiiuse/dynamics.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/wiiuse/dynamics.c b/lib/wiiuse/dynamics.c index b2f88ccd7..76ac2028f 100644 --- a/lib/wiiuse/dynamics.c +++ b/lib/wiiuse/dynamics.c @@ -64,7 +64,7 @@ void calculate_orientation(struct accel_t* ac, struct vec3b_t* accel, struct ori */ /* yaw - set to 0, IR will take care of it if it's enabled */ - //orient->yaw = 0.0f; + orient->yaw = 0.0f; /* find out how much it has to move to be 1g */ xg = (float)ac->cal_g.x; @@ -110,12 +110,6 @@ void calculate_orientation(struct accel_t* ac, struct vec3b_t* accel, struct ori orient->a_pitch = y; } - if (abs(accel->z - ac->cal_zero.z) <= ac->cal_g.z) { - z = RAD_TO_DEGREE(atan2f(x, y)); - - orient->yaw = z; - } - /* smooth the angles if enabled */ if (smooth) { apply_smoothing(ac, orient, SMOOTH_ROLL);