Fixed incorrect rescue (which happens typically when jumping
down in tux tollway). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1615 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
31e0b93243
commit
5b32e58b83
@ -619,7 +619,7 @@ void Kart::update (float dt)
|
||||
Moveable::update(dt);
|
||||
|
||||
// Check if a kart is (nearly) upside down and not moving much --> automatic rescue
|
||||
if((fabs(m_curr_pos.hpr[2])>60 && getSpeed()<3.0f) )
|
||||
if((fabs(m_curr_pos.hpr[2])>60 && fabs(getSpeed())<3.0f) )
|
||||
{
|
||||
forceRescue();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user