let karts fall a bit before rescuing when falling into void
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
dda853bd93
commit
f235baafed
@ -571,7 +571,9 @@ void Kart::update(float dt)
|
||||
const Material* material=getMaterial();
|
||||
if (getHoT()==Track::NOHIT) // kart falling off the track
|
||||
{
|
||||
forceRescue();
|
||||
// let kart fall a bit before rescuing
|
||||
if( abs( getXYZ().getZ() - RaceManager::getTrack()->m_left_driveline[0].getZ() ) > 17)
|
||||
forceRescue();
|
||||
}
|
||||
else if(material)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user