Fixed bubble gum skid marks which could be in the air.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-06-13 23:19:20 +00:00
parent 3c2846d48e
commit fc12f317e3

View File

@ -108,12 +108,12 @@ void SkidMarks::update(float dt, bool force_skid_marks,
// If only one wheel touches the ground, the 2nd one gets the same
// raycast result --> delta is 0, which is considered to be not skidding.
const Skidding *skid = m_kart.getSkidding();
bool is_skidding = force_skid_marks ||
bool is_skidding = raycast_right.m_isInContact &&
( force_skid_marks ||
( (skid->getSkidState()==Skidding::SKID_ACCUMULATE_LEFT ||
skid->getSkidState()==Skidding::SKID_ACCUMULATE_RIGHT )
&& m_kart.getSkidding()->getGraphicalJumpOffset()<=0
&& raycast_right.m_isInContact
&& delta.length2()>=0.0001f );
&& delta.length2()>=0.0001f ) );
if(m_skid_marking)
{