We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c096bb commit 963c6deCopy full SHA for 963c6de
src/karts/kart.cpp
@@ -2001,7 +2001,8 @@ void Kart::handleMaterialSFX()
2001
// FIXME: if there are already two sfx playing, don't add another
2002
// one. This should reduce the performance impact when driving
2003
// on the bridge in Cocoa.
2004
- const Material *material = m_terrain_info->getMaterial();
+ const Material* material =
2005
+ isOnGround() ? m_terrain_info->getMaterial() : NULL;
2006
2007
// We can not use getLastMaterial() since, since the last material might
2008
// be updated several times during the physics updates, not indicating
0 commit comments