Skip to content

Commit 963c6de

Browse files
committed
1 parent 6c096bb commit 963c6de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/karts/kart.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,8 @@ void Kart::handleMaterialSFX()
20012001
// FIXME: if there are already two sfx playing, don't add another
20022002
// one. This should reduce the performance impact when driving
20032003
// on the bridge in Cocoa.
2004-
const Material *material = m_terrain_info->getMaterial();
2004+
const Material* material =
2005+
isOnGround() ? m_terrain_info->getMaterial() : NULL;
20052006

20062007
// We can not use getLastMaterial() since, since the last material might
20072008
// be updated several times during the physics updates, not indicating

0 commit comments

Comments
 (0)