diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 099d0f0..0608fa7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
97 | public uint Category; | 97 | public uint Category; |
98 | 98 | ||
99 | // TODO: This needs to be persisted in next XML version update! | 99 | // TODO: This needs to be persisted in next XML version update! |
100 | [XmlIgnore] public int[] PayPrice = {0,0,0,0,0}; | 100 | [XmlIgnore] public int[] PayPrice = {0,0,0,0,0}; |
101 | 101 | ||
102 | 102 | ||
103 | [XmlIgnore] public bool m_IsAttachment = false; | 103 | [XmlIgnore] public bool m_IsAttachment = false; |
@@ -2038,18 +2038,18 @@ namespace OpenSim.Region.Environment.Scenes | |||
2038 | } | 2038 | } |
2039 | } | 2039 | } |
2040 | 2040 | ||
2041 | if(soundID == LLUUID.Zero) | 2041 | if(soundID == LLUUID.Zero) |
2042 | return; | 2042 | return; |
2043 | 2043 | ||
2044 | List<ScenePresence> avatarts = m_parentGroup.Scene.GetAvatars(); | 2044 | List<ScenePresence> avatarts = m_parentGroup.Scene.GetAvatars(); |
2045 | foreach (ScenePresence p in avatarts) | 2045 | foreach (ScenePresence p in avatarts) |
2046 | { | 2046 | { |
2047 | double dis=Util.GetDistanceTo(p.AbsolutePosition, position); | 2047 | double dis=Util.GetDistanceTo(p.AbsolutePosition, position); |
2048 | if(dis > 100.0) // Max audio distance | 2048 | if(dis > 100.0) // Max audio distance |
2049 | continue; | 2049 | continue; |
2050 | 2050 | ||
2051 | // Scale by distance | 2051 | // Scale by distance |
2052 | volume*=((100.0-dis)/100.0); | 2052 | volume*=((100.0-dis)/100.0); |
2053 | 2053 | ||
2054 | if (triggered) | 2054 | if (triggered) |
2055 | { | 2055 | { |