Disable skid marks when a kart is not steering.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2845 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
28effae153
commit
3b3416a1af
@ -96,6 +96,7 @@ void SkidMarks::update(float dt)
|
||||
// just stop doing skid marks as well.
|
||||
// ---------------------------------------------------------
|
||||
if(!raycast_right.m_isInContact || !m_kart.getControls().m_drift ||
|
||||
fabsf(m_kart.getControls().m_steer) < 0.001f ||
|
||||
delta.length2()<0.0001)
|
||||
{
|
||||
m_skid_marking = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user