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
This commit is contained in:
hikerstk 2013-10-23 11:43:43 +00:00
parent d157d175e7
commit bba3f85e4e

View File

@ -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);