From 1ddb5e2b7db854134dbcdf3fcee1b0a16c459670 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 18 Mar 2010 11:42:49 +0000 Subject: [PATCH] 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 --- src/karts/kart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 120bf8064..63754bc58 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -336,7 +336,7 @@ void Kart::eliminate() */ bool Kart::isInRest() const { - return fabs(m_body->getLinearVelocity ().z())<0.2; + return fabs(m_body->getLinearVelocity ().y())<0.2; } // isInRest //-----------------------------------------------------------------------------