From 0336a681abd85d0c6c31fe93b1701c97776ac2c1 Mon Sep 17 00:00:00 2001 From: Duion Date: Sun, 31 Jul 2016 20:15:46 +0200 Subject: [PATCH] fixes footsteps missing when no impactSoundId fix for this issue https://github.com/GarageGames/Torque3D/issues/1709 --- Engine/source/T3D/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/player.cpp b/Engine/source/T3D/player.cpp index 2e365960d..4393073a6 100644 --- a/Engine/source/T3D/player.cpp +++ b/Engine/source/T3D/player.cpp @@ -6884,7 +6884,7 @@ void Player::playFootstepSound( bool triggeredLeft, Material* contactMaterial, S // Play default sound. S32 sound = -1; - if (contactMaterial && (contactMaterial->mImpactSoundId>-1 && contactMaterial->mImpactSoundIdmFootstepSoundId>-1 && contactMaterial->mFootstepSoundIdmFootstepSoundId; else if( contactObject && contactObject->getTypeMask() & VehicleObjectType ) sound = 2;