Fixed upright constraint, which prevents karts from toppling over when

jumping (e.g. paper plane in math class).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-09-25 21:57:56 +00:00
parent d62e1f659d
commit 351a69adfe

View File

@ -608,7 +608,7 @@ bool Kart::isNearGround() const
if(getHoT()==Track::NOHIT)
return false;
else
return ((getXYZ().getZ() - getHoT()) < stk_config->m_near_ground);
return ((getXYZ().getY() - getHoT()) < stk_config->m_near_ground);
} // isNearGround
//-----------------------------------------------------------------------------