diff options
author | Melanie | 2012-06-07 23:41:10 +0200 |
---|---|---|
committer | Melanie | 2012-06-07 23:41:10 +0200 |
commit | ad1df330063ff2786b1ed8aae65f0198285ccd9c (patch) | |
tree | c29694b470d451c33332a9e88787949fa02b5c07 | |
parent | Typo fix (diff) | |
download | opensim-SC-ad1df330063ff2786b1ed8aae65f0198285ccd9c.zip opensim-SC-ad1df330063ff2786b1ed8aae65f0198285ccd9c.tar.gz opensim-SC-ad1df330063ff2786b1ed8aae65f0198285ccd9c.tar.bz2 opensim-SC-ad1df330063ff2786b1ed8aae65f0198285ccd9c.tar.xz |
Further limit the amount of avatar collisions that will actually trigger
sounds. They are distracting.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/CollisionSounds.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs index a95e75a..3ec3cf7 100644 --- a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs +++ b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs | |||
@@ -266,9 +266,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
266 | else | 266 | else |
267 | { | 267 | { |
268 | volume = Math.Abs(colInfo.relativeVel); | 268 | volume = Math.Abs(colInfo.relativeVel); |
269 | if (volume < 0.2f) | 269 | // Most noral collisions (running into walls, stairs) |
270 | // should never be heard. | ||
271 | if (volume < 2.0f) | ||
270 | continue; | 272 | continue; |
271 | m_log.DebugFormat("Collision speed was {0}", volume); | 273 | // m_log.DebugFormat("Collision speed was {0}", volume); |
272 | 274 | ||
273 | // Cap to 0.2 times volume because climbing stairs should not be noisy | 275 | // Cap to 0.2 times volume because climbing stairs should not be noisy |
274 | // Also changed scaling | 276 | // Also changed scaling |