aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs
index ac7f7b4..68bd413 100644
--- a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs
+++ b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs
@@ -58,10 +58,15 @@ namespace OpenSim.Region.CoreModules.World.Sound
58 IConfig config = configSource.Configs["Sounds"]; 58 IConfig config = configSource.Configs["Sounds"];
59 59
60 if (config == null) 60 if (config == null)
61 return; 61 {
62 62 Enabled = true;
63 Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared"; 63 MaxDistance = 100.0f;
64 MaxDistance = config.GetFloat("MaxDistance", 100.0f); 64 }
65 else
66 {
67 Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
68 MaxDistance = config.GetFloat("MaxDistance", 100.0f);
69 }
65 } 70 }
66 71
67 public void AddRegion(Scene scene) { } 72 public void AddRegion(Scene scene) { }