Skip to content

Commit

Permalink
Merge pull request #1717 from Duion/patch-3
Browse files Browse the repository at this point in the history
fixes footsteps missing when no impactSoundId
  • Loading branch information
Lopuska committed Aug 7, 2016
2 parents 70d868c + 0336a68 commit 585c5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/source/T3D/player.cpp
Expand Up @@ -6884,7 +6884,7 @@ void Player::playFootstepSound( bool triggeredLeft, Material* contactMaterial, S
// Play default sound.

S32 sound = -1;
if (contactMaterial && (contactMaterial->mImpactSoundId>-1 && contactMaterial->mImpactSoundId<PlayerData::MaxSoundOffsets))
if (contactMaterial && (contactMaterial->mFootstepSoundId>-1 && contactMaterial->mFootstepSoundId<PlayerData::MaxSoundOffsets))
sound = contactMaterial->mFootstepSoundId;
else if( contactObject && contactObject->getTypeMask() & VehicleObjectType )
sound = 2;
Expand Down

0 comments on commit 585c5d5

Please sign in to comment.