This commit is contained in:
Benau 2019-07-08 11:44:10 +08:00
parent 6c096bb63b
commit 963c6de4cd

View File

@ -2001,7 +2001,8 @@ void Kart::handleMaterialSFX()
// FIXME: if there are already two sfx playing, don't add another
// one. This should reduce the performance impact when driving
// on the bridge in Cocoa.
const Material *material = m_terrain_info->getMaterial();
const Material* material =
isOnGround() ? m_terrain_info->getMaterial() : NULL;
// We can not use getLastMaterial() since, since the last material might
// be updated several times during the physics updates, not indicating