Fixed incorrect start positions on some tracks (caused by minor
forwards/backwards shaking of the kart at start and the fact that 'isInRest()' tested the wrong axis). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1d14be2e86
commit
1ddb5e2b7d
@ -336,7 +336,7 @@ void Kart::eliminate()
|
|||||||
*/
|
*/
|
||||||
bool Kart::isInRest() const
|
bool Kart::isInRest() const
|
||||||
{
|
{
|
||||||
return fabs(m_body->getLinearVelocity ().z())<0.2;
|
return fabs(m_body->getLinearVelocity ().y())<0.2;
|
||||||
} // isInRest
|
} // isInRest
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user