浏览代码

Merge pull request #1717 from Duion/patch-3

fixes footsteps missing when no impactSoundId
Anis 9 年之前
父节点
当前提交
585c5d5afe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/T3D/player.cpp

+ 1 - 1
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->mImpactSoundId<PlayerData::MaxSoundOffsets))
+      if (contactMaterial && (contactMaterial->mFootstepSoundId>-1 && contactMaterial->mFootstepSoundId<PlayerData::MaxSoundOffsets))
          sound = contactMaterial->mFootstepSoundId;
       else if( contactObject && contactObject->getTypeMask() & VehicleObjectType )
          sound = 2;