Small hack to avoid steer vibrations

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1208 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hansthefarmer 2007-08-18 12:46:16 +00:00
parent 5fd54e18ea
commit 67a4c5a4a1

View File

@ -277,6 +277,9 @@ void DefaultRobot::handle_steering()
#endif
}
// avoid steer vibrations
if (fabsf(steer_angle) < 2.0f)
steer_angle = 0.f;
m_controls.lr = angle_to_control( steer_angle );
}