No dust particles when no on ground
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7382 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -1565,7 +1565,7 @@ void Kart::updateGraphics(const Vec3& offset_xyz,
|
||||
if (m_skidding > 1.0f)
|
||||
{
|
||||
const ParticleKind* pk = material->getParticlesWhen(Material::EMIT_ON_SKID);
|
||||
if (pk != NULL)
|
||||
if (pk != NULL && isOnGround())
|
||||
{
|
||||
m_terrain_particles->setParticleType(pk);
|
||||
|
||||
@@ -1596,7 +1596,7 @@ void Kart::updateGraphics(const Vec3& offset_xyz,
|
||||
else // not skidding
|
||||
{
|
||||
const ParticleKind* pk = material->getParticlesWhen(Material::EMIT_ON_DRIVE);
|
||||
if (pk != NULL)
|
||||
if (pk != NULL && isOnGround())
|
||||
{
|
||||
//printf("Setting DRIVING particles\n");
|
||||
m_terrain_particles->setParticleType(pk);
|
||||
|
||||
Reference in New Issue
Block a user