Don't let camera enter falling mode if kart is flying, avoids annoying camera when flying over water to debug something

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-03-16 19:17:35 +00:00
parent e9c7a30b43
commit 0ac5784ced

View File

@@ -1034,7 +1034,7 @@ void Kart::handleMaterialGFX()
// Now the kart is either falling, or driving on a terrain which
// has the 'below surface' flag set. Detect if there is a surface
// on top of the kart.
if(m_camera && material && material->hasFallingEffect())
if(m_camera && material && material->hasFallingEffect() && !m_flying)
{
m_camera->setMode(Camera::CM_FALLING);
}