This file was missing in the previous patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c21c9b5573
commit
4a93d103d4
@ -468,7 +468,7 @@ void DefaultRobot::handle_rescue(const float DELTA)
|
||||
//TODO: check if we collided against a dynamic object (ej.:kart) or
|
||||
//against the track's static object.
|
||||
//The m_crash_time measures if a kart has been crashing for too long
|
||||
m_crash_time += (m_collided && m_on_ground) ? 3.0f * DELTA : -0.25f * DELTA;
|
||||
m_crash_time += (m_collided && isOnGround()) ? 3.0f * DELTA : -0.25f * DELTA;
|
||||
|
||||
if( m_crash_time < 0.0f ) m_crash_time = 0.0f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user