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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user