From 4a93d103d419ac7c56f503dbe905c59fbd90a65f Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 8 Nov 2007 13:14:31 +0000 Subject: [PATCH] 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 --- src/robots/default_robot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/robots/default_robot.cpp b/src/robots/default_robot.cpp index b28e4500e..1609b6b7e 100755 --- a/src/robots/default_robot.cpp +++ b/src/robots/default_robot.cpp @@ -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;